Skip to content

Commit eb9ba14

Browse files
committed
ci(bundlers): install ts-jest/jest inside test/bundler with local token-free .npmrc (option A)
1 parent 3210b6b commit eb9ba14

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/test-bundlers.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ jobs:
2929
- name: 📦 Install bundler dev deps (ts-jest, jest)
3030
shell: bash
3131
run: |
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
32+
cd test/bundler
33+
# local, token‑free npmrc for this subfolder
34+
printf "registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=\nalways-auth=false\n" > .npmrc
3735
# 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
36+
npm i -D ts-jest@29 jest@29 --no-audit --no-fund --ignore-scripts --prefer-online
3937
env:
4038
NPM_TOKEN: ''
4139
NODE_AUTH_TOKEN: ''

0 commit comments

Comments
 (0)