chore(release): v0.4.1 #11
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: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write # required for OIDC trusted publishing | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" # Node >= 22.14 required for trusted publishing | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Ensure npm >= 11.5.1 (OIDC trusted publishing) | |
| run: npm install -g npm@latest | |
| - name: Install | |
| run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Test | |
| run: npm run test | |
| - name: Build | |
| run: npm run build | |
| # Trusted publishing via OIDC — no NPM token, provenance is automatic. | |
| - name: Publish | |
| run: npm publish --access public |