Skip to content

Release Package

Release Package #19

Workflow file for this run

name: Release Package
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node 16
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: 7.0.0
- name: Install
run: pnpm install
- name: Publish
run: |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
pnpm publish --no-git-checks
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}