NPM Canary release #20
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: NPM Canary release | |
on: workflow_dispatch | |
jobs: | |
canary-publish: | |
name: Publish Packages (canary) | |
runs-on: ubuntu-latest | |
environment: Canary | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn | |
- run: yarn build | |
- run: npm version prerelease --preid "${GITHUB_SHA::8}" --no-git-tag-version | |
- run: npm publish --access public --tag canary | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |