Skip to content

Commit 360471e

Browse files
Refactor GitHub Actions workflow for redirect testing
1 parent b6d7d3a commit 360471e

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/release-assets.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,33 @@ name: Node Redirect Repro
22
on: workflow_dispatch
33

44
jobs:
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"

0 commit comments

Comments
 (0)