Commit 0223364
Validate NPM token before creating a release (#56501)
Summary:
Pull Request resolved: #56501
Add an early NPM token validation step to the create-release workflow.
This runs `npm whoami` right after checkout to fail fast if the token is
expired or invalid, avoiding wasted CI time on a release that would fail
at the publish step.
The step gracefully skips when no token is present (e.g. fork PRs).
## Changelog:
[Internal] -
Reviewed By: christophpurrer
Differential Revision: D101377190
fbshipit-source-id: 53243a24649f86d274b2ea31793333fd815e69cb1 parent 6779f6c commit 0223364
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
31 | 46 | | |
32 | 47 | | |
33 | 48 | | |
| |||
0 commit comments