diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 6b44256ea9..7a37a1fc2b 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -32,3 +32,17 @@ jobs: needs: [ release-please ] if: needs.release-please.outputs.pr || startsWith(github.head_ref, 'release-please--') uses: ./.github/workflows/tests.yml + + npm-publish: + needs: release-please + if: ${{ needs.release-please.outputs.release_created }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + registry-url: 'https://registry.npmjs.org' + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}