File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2929 - name : 📦 Install bundler dev deps (ts-jest, jest)
3030 shell : bash
3131 run : |
32- # Use a temporary npmrc that points to the public registry only and has no tokens
33- printf "registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=\nalways-auth=false\n" > "$RUNNER_TEMP/npmrc-public"
34- npm ci --prefer-online --no-audit --userconfig "$RUNNER_TEMP/npmrc-public" --prefix test/bundler
32+ # Use a clean, token-free npm user config and explicit registry
33+ printf "registry=https://registry.npmjs.org/\n" > "$RUNNER_TEMP/npmrc-public"
34+ export NPM_CONFIG_USERCONFIG="$RUNNER_TEMP/npmrc-public"
35+ # Ensure no local npmrc shadows config
36+ rm -f test/bundler/.npmrc || true
37+ # Install only what's needed for the preset (no lockfile, no scripts)
38+ npm i -D ts-jest@29 jest@29 --no-audit --no-fund --ignore-scripts --prefer-online --registry=https://registry.npmjs.org/ --prefix test/bundler
3539 env :
3640 NPM_TOKEN : ' '
3741 NODE_AUTH_TOKEN : ' '
You can’t perform that action at this time.
0 commit comments