1 parent 34a8646 commit 7631a9dCopy full SHA for 7631a9d
1 file changed
.github/workflows/release.yml
@@ -32,6 +32,7 @@ jobs:
32
with:
33
node-version: 24
34
registry-url: "https://registry.npmjs.org"
35
+ package-manager-cache: false # never use caching in release builds
36
if: ${{ steps.release.outputs.release_created }}
37
38
- name: Install dependencies
@@ -46,9 +47,12 @@ jobs:
46
47
run: pnpm build
48
49
50
+ # Trusted publishing via OIDC — no NODE_AUTH_TOKEN needed.
51
+ # The npm CLI auto-detects the OIDC environment and exchanges the
52
+ # id-token for a short-lived publish credential. Provenance is
53
+ # generated automatically.
54
- name: Publish to npm
55
run: npm publish --no-git-checks
56
env:
57
NODE_ENV: production
- NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
58
0 commit comments