Commit 0a9cf4c
committed
ci(release): publish to npm via trusted publishing (OIDC)
The publish job failed with npm E404 because it published unauthenticated
(no NODE_AUTH_TOKEN; setup-node's placeholder token). Switch to npm Trusted
Publishing instead of a long-lived token:
- upgrade npm to >= 11.5.1 (OIDC support) after setup-node
- drop NODE_AUTH_TOKEN and the --provenance flag; with the GitHub Actions
OIDC environment (id-token: write) npm authenticates via the per-package
Trusted Publisher on npmjs.com and generates provenance automatically
Requires a Trusted Publisher configured on npmjs.com for each @pleaseai/code*
package (repo pleaseai/code-intelligence, workflow file release-please.yml).1 parent 559a54d commit 0a9cf4c
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
85 | | - | |
| 92 | + | |
86 | 93 | | |
87 | | - | |
| 94 | + | |
0 commit comments