Skip to content

Commit 665db9c

Browse files
Update test#134.yml
1 parent 18ae0e8 commit 665db9c

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/test#134.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1-
name: Test Setup Node with MirrorURL
1+
name: Test Setup Node with MirrorURL (Nightly Builds)
22

33
on:
44
workflow_dispatch:
55

66
jobs:
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/"

0 commit comments

Comments
 (0)