Commit ff2e525
fix(ci): expand NODE_AUTH_TOKEN placeholder for Yarn classic GitHub Packages auth
widget-sdk@3.18.0 is published to GitHub Packages (npm.pkg.github.com),
unlike 3.17.0 which was on the public npm registry and needed no auth.
actions/setup-node writes the literal string '${NODE_AUTH_TOKEN}' into the
temp npmrc file (NPM_CONFIG_USERCONFIG). The npm CLI expands env-var
references from .npmrc; Yarn classic (v1) does NOT — so every yarn install
sent the literal '${NODE_AUTH_TOKEN}' as the Bearer token, causing 401.
Fix: expand the placeholder in-place with sed before running yarn install,
in the same step where NODE_AUTH_TOKEN is defined in env.
Co-authored-by: GitHub Copilot <copilot@noreply.github.com>1 parent 59d5a4d commit ff2e525
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
0 commit comments