fix(ci): pin Node 22.14 in publish workflow #6
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
| name: Publish to npm | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| test: | |
| uses: ./.github/workflows/ci.yml | |
| publish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| environment: npm | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| NODE_AUTH_TOKEN: "" | |
| NPM_TOKEN: "" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22.14" | |
| registry-url: "https://registry.npmjs.org" | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Update npm for trusted publishing | |
| run: npm install -g npm@latest | |
| - name: Remove temp npmrc so npm uses OIDC | |
| run: rm -f "$NPM_CONFIG_USERCONFIG" | |
| - run: npm publish --provenance --access public |