Commit c384146
committed
ci: add OIDC provenance support for npm publishing
- Add id-token: write permission for OIDC token generation
- Add registry-url to setup-node for npm auth
- Set NPM_CONFIG_PROVENANCE to publish with provenance via OIDC
- Bypasses 2FA/OTP requirement for automated publishing1 parent 65e67bc commit c384146
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
0 commit comments