v0.5.22 #4
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
| # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
| # This workflow will publish any new release to the npmjs registry | |
| name: Publish Release | |
| permissions: | |
| id-token: write | |
| contents: read | |
| # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [released] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| # NOTE: the explicit registry-url is currently needed for the auth token to work | |
| registry-url: https://registry.npmjs.org/ | |
| # NOTE: the npm update is needed for trusted publisher id-token integration to work | |
| - run: npm install -g npm@latest | |
| - run: npm ci | |
| - run: npm test | |
| - run: npm run lint | |
| - run: npm publish --access public |