v0.5.1 #3
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: Release | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
env: | |
ANCA_CI: true | |
name: "Publish package to npm registry" | |
steps: | |
- uses: actions/checkout@v4 | |
name: "Checkout repo" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22.4.1 | |
registry-url: https://registry.npmjs.org/ | |
name: "Install Node.js" | |
- run: npm ci | |
name: "Install dependencies" | |
- run: npm test | |
name: "Run tests" | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | |
name: "Build and publish to registry" |