Node.js Package #35
Workflow file for this run
This file contains 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: Node.js Package | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
env: | |
NPM_AUTH_TOKEN: ${{secrets.npm_token}} | |
steps: | |
- uses: actions/checkout@v4 | |
# use Volta to manage yarn/node versions | |
- uses: volta-cli/action@v4 | |
- run: yarn install | |
- run: yarn bootstrap | |
- run: npm i -g [email protected] | |
- name: Login to NPM | |
run: npm config set "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" | |
- name: Publish | |
run: npm publish --workspaces --access public |