Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Package to NPM when a Release is Created | |
on: | |
release: | |
types: [created] | |
jobs: | |
pypi-publish: | |
name: Publish release to NPM | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
- name: Build package | |
run: | | |
yarn | |
yarn build | |
- name: Publish package NPM | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
# - name: Publish package JSR | |
# run: npx jsr publish --allow-slow-types |