Repository navigation
Commit d8a05de
Add staged OIDC publish workflow (#524)
* Add staged OIDC publish workflow
Replace token-based npm publishing with OIDC trusted publishing + npm
staged publishing: CI authenticates with a short-lived OIDC token (no
stored npm token) and stages the release; a maintainer promotes it from
the npm staging area with 2FA.
The verify job asserts the Release tag matches package.json and refuses
releases not reachable from the default branch. Listed in .fernignore so
it is not overwritten by code generation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Pin stage-publish to the ancestry-checked SHA (close TOCTOU window)
verify now outputs the validated $GITHUB_SHA; stage-publish checks out that
exact SHA instead of re-resolving the mutable release tag, so the commit that
is published is provably the one the branch-ancestry guard approved. Mirrors
the hardening already in intercom-react-native.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Bump actions/checkout to v7.0.0
Pin to 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 (v7.0.0).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Fix Node-floor comment and add verify timeout
- Correct the setup-node comment: staged publishing needs Node >= 22.14.0,
not >= 20 (addresses review feedback on a misleading comment).
- Add timeout-minutes: 5 to the verify job as a hung-step backstop,
matching the bound already on stage-publish.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a6ec1f0 commit d8a05de
2 files changed
Lines changed: 93 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
0 commit comments