diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml new file mode 100644 index 0000000..02ce834 --- /dev/null +++ b/.github/workflows/npm-publish-github-packages.yml @@ -0,0 +1,26 @@ + +name: Node.js Package + +on: + release: + types: [created] + +jobs: + publish-gpr: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16 + registry-url: https://npm.pkg.github.com/ + - uses: pnpm/action-setup@v2.0.1 + with: + version: "6.x" + run_install: true + - run: pnpm publish --no-git-checks + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}