Upload changes to the npm and yarn registries #2
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: Upload changes to the npm and yarn registries | |
run-name: Upload changes to the npm and yarn registries | |
on: | |
push: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4.0.1 | |
with: | |
node-version: '21.x' | |
- run: yarn install --immutable | |
- run: yarn setversion | |
- run: yarn compile | |
- uses: JS-DevTools/npm-publish@v3.0.1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
- uses: JS-DevTools/npm-publish@v3.0.1 | |
with: | |
token: ${{ secrets.REGIRSTY_PUBLISH_TOKEN }} | |
registry: 'https://npm.pkg.github.com' |