Release #23
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: Release | |
| on: | |
| workflow_run: | |
| workflows: [CI] | |
| types: [completed] | |
| branches: [main] | |
| jobs: | |
| release: | |
| name: Release to npm | |
| if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| # Do NOT set registry-url — it writes .npmrc token config that blocks OIDC | |
| - run: npm config set registry https://registry.npmjs.org/ | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| - name: Release | |
| id: release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # npm auth handled via OIDC trusted publishing (no NPM_TOKEN needed) | |
| run: pnpm exec semantic-release |