Commit 9278bf8
Add --provenance --access public flags to npm publish for OIDC trusted publisher support
Summary:
OIDC Trusted Publishers was failing with 404 errors when publishing to npm. Switch to token-based auth using NPM_TOKEN secret instead.
Changes:
- Replace yarn publish with npm publish (yarn doesn't use .npmrc auth from actions/setup-node)
- Use NPM_TOKEN secret for authentication instead of OIDC
- Remove id-token permission (no longer needed)
Requires adding an NPM automation token as the NPM_TOKEN secret in GitHub repo settings.
Differential Revision: D99919592
fbshipit-source-id: df369677690d231e2fbfbf71ca67b10859d6046d1 parent c71ae3e commit 9278bf8
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments