File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,23 @@ jobs:
4949 - name : Temporary manual sync 'latest' tag # will be removed after sync
5050 if : github.event_name == 'workflow_dispatch' && github.ref_name == vars.LATEST_STABLE_VERSION
5151 run : |
52+ # 1. Identify which .npmrc npm is actually using
53+ NPM_RC=${NPM_CONFIG_USERCONFIG:-$HOME/.npmrc}
54+ echo "Writing to: $NPM_RC"
55+
56+ # 2. Configure for OIDC and map scope
5257 # Forces OIDC authentication for raw run commands
53- echo "//registry.npmjs.org/:_authToken=" > "$HOME/.npmrc"
58+ echo "//registry.npmjs.org/:_authToken=" > "$NPM_RC"
59+ echo "@shopify:registry=https://registry.npmjs.org/" >> "$NPM_RC"
60+
61+ # 3. Debug info (contents from above)
62+ echo "--- Contents of $NPM_RC ---"
63+ cat "$NPM_RC"
64+ echo "--- npm identity check ---"
65+ npm whoami --registry=https://registry.npmjs.org/ || echo "whoami failed (expected if OIDC not yet triggered)"
5466
55- npm dist-tag add @shopify/[email protected] latest 67+ # 4. Run with info logging
68+ npm dist-tag add @shopify/[email protected] latest --loglevel=info 5669
5770 - name : Set 'latest' NPM dist tag
5871 if : steps.changesets.outputs.published == 'true' && github.ref_name == vars.LATEST_STABLE_VERSION
You can’t perform that action at this time.
0 commit comments