File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -2,31 +2,33 @@ name: Node Redirect Repro
22on : workflow_dispatch
33
44jobs :
5- test- redirect :
5+ redirect-test :
66 runs-on : ubuntu-latest
77 env :
88 ACTIONS_STEP_DEBUG : true
99 ACTIONS_RUNNER_DEBUG : true
10- NODETOOL_VERBOSE : true
1110
1211 steps :
1312 - uses : actions/checkout@v4
1413
15- - name : Debug info
16- run : |
17- echo "Starting redirect reproduction test"
18- echo "Date: $(date)"
19- echo "Cache-bust token: $(date +%s)"
14+ - name : Generate cache-bust token
15+ id : token
16+ run : echo "token=$(date +%s)" >> $GITHUB_OUTPUT
2017
21- - name : Setup Node (force CDN fresh fetch)
18+ # 1) Force "no manifest" mode -> skips node-versions JSON lookup
19+ - name : Setup Node (force direct fetch / CDN redirect)
2220 uses : actions/setup-node@v4
2321 with :
24- node-version : " 20.16.0?cache=$(date +%s)"
22+ node-version : " 20.16.0"
23+ check-latest : true
24+ cache : " npm"
25+ env :
26+ # NodeTool respects these fetch parameters internally
27+ NODETOOL_FORCE_REDOWNLOAD : " true"
28+ NODETOOL_CACHEBUST : ${{ steps.token.outputs.token }}
2529
26- - name : Confirm install
30+ - name : Verify redirect trigger
2731 run : |
2832 node -v
2933 which node
30-
31- - name : Complete
32- run : echo "Finished test"
34+ echo "Completed. Check logs above for 302 redirect to release-assets.githubusercontent.com"
You can’t perform that action at this time.
0 commit comments