File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 1- name : Test Setup Node with MirrorURL
1+ name : Test Setup Node with MirrorURL (Nightly Builds)
22
33on :
44 workflow_dispatch :
55
66jobs :
77 setup-node :
88 runs-on : macos-latest
9+
910 steps :
11+ # Step 1: Checkout the repository
1012 - name : Checkout code
1113 uses : actions/checkout@v4
1214
13- - name : Set up Node.js with mirrorURL
15+ # Step 2: Set up Node.js with nightly version and mirror URL
16+ - name : Set up Node.js (Nightly Build) with mirrorURL
1417 uses : aparnajyothi-y/setup-node@add-mirror-url
1518 with :
16- node-version : ' 19'
17- mirror-url : ' https://nodejs.org/dist/'
18- # #check-latest : false
19+ node-version : ' 21-nightly' # Specify nightly build version
20+ mirror-url : ' https://nodejs.org/download/nightly/' # Use the nightly distribution URL
21+ check-latest : false # Optional: Set to false to not check for the latest version (if required)
22+
23+ # Step 3: Verify Node.js installation and the mirror URL functionality
24+ - name : Verify Node.js installation
25+ run : |
26+ node -v # Verify Node.js version (should be a nightly version)
27+ npm -v # Verify npm version
28+
29+ # Step 4: Additional validation (Optional) - Check if the mirror URL is being used
30+ - name : Check Mirror URL in setup
31+ run : |
32+ echo "Mirror URL used: https://nodejs.org/download/nightly/"
You can’t perform that action at this time.
0 commit comments