-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.02 KB
/
release.yml
File metadata and controls
37 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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