diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0aeccf5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +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/action-setup@v2.0.1 + 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}} \ No newline at end of file