Skip to content

Commit ae4705a

Browse files
authored
feat: use cnpm mirror to setup node
2 parents 53b8394 + e457c82 commit ae4705a

37 files changed

Lines changed: 77587 additions & 18015 deletions

.github/workflows/e2e-cache.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
21+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
2222
node-version: [20, 22, 24]
2323
steps:
2424
- uses: actions/checkout@v6
@@ -41,7 +41,7 @@ jobs:
4141
strategy:
4242
fail-fast: false
4343
matrix:
44-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
44+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
4545
node-version: [20, 22, 24]
4646
steps:
4747
- uses: actions/checkout@v6
@@ -74,7 +74,7 @@ jobs:
7474
strategy:
7575
fail-fast: false
7676
matrix:
77-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
77+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
7878
node-version: [20, 22, 24]
7979
steps:
8080
- uses: actions/checkout@v6
@@ -106,7 +106,7 @@ jobs:
106106
strategy:
107107
fail-fast: false
108108
matrix:
109-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
109+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
110110
node-version: [20, 22, 24]
111111
steps:
112112
- uses: actions/checkout@v6
@@ -250,7 +250,7 @@ jobs:
250250
strategy:
251251
fail-fast: false
252252
matrix:
253-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
253+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
254254
node-version: [20, 22, 24]
255255
steps:
256256
- uses: actions/checkout@v6
@@ -275,7 +275,7 @@ jobs:
275275
strategy:
276276
fail-fast: false
277277
matrix:
278-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
278+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
279279
node-version: [20, 22, 24]
280280
steps:
281281
- uses: actions/checkout@v6

.github/workflows/proxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-latest
4040
env:
4141
https_proxy: http://no-such-proxy:3128
42-
no_proxy: api.github.com,github.com,nodejs.org,registry.npmjs.org,*.s3.amazonaws.com,s3.amazonaws.com
42+
no_proxy: api.github.com,github.com,cdn.npmmirror.com,registry.npmjs.org,*.s3.amazonaws.com,s3.amazonaws.com
4343
steps:
4444
- uses: actions/checkout@v6
4545
- name: Clear tool cache

.github/workflows/versions.yml

Lines changed: 8 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
20+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
2121
node-version: [20, 22, 24]
2222
steps:
2323
- uses: actions/checkout@v6
@@ -29,99 +29,12 @@ jobs:
2929
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
3030
shell: bash
3131

32-
lts-syntax:
33-
runs-on: ${{ matrix.os }}
34-
strategy:
35-
fail-fast: false
36-
matrix:
37-
os: [ubuntu-latest, windows-latest, macos-latest-large]
38-
node-version: [lts/dubnium, lts/erbium, lts/fermium, lts/*, lts/-1]
39-
steps:
40-
- uses: actions/checkout@v6
41-
- name: Setup Node
42-
uses: ./
43-
with:
44-
node-version: ${{ matrix.node-version }}
45-
check-latest: true
46-
- if: runner.os != 'Windows' && runner.os != 'macOS'
47-
name: Verify node and npm
48-
run: |
49-
. "$NVM_DIR/nvm.sh"
50-
[[ $(nvm version-remote "${{ matrix.node-version }}") =~ ^v([^.]+) ]]
51-
__tests__/verify-node.sh "${BASH_REMATCH[1]}"
52-
shell: bash
53-
54-
v8-canary-syntax:
55-
runs-on: ${{ matrix.os }}
56-
strategy:
57-
fail-fast: false
58-
matrix:
59-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
60-
node-version:
61-
[
62-
'20-v8-canary',
63-
'20.0.0-v8-canary',
64-
'20.0.0-v8-canary20221101e50e45c9f8'
65-
]
66-
steps:
67-
- uses: actions/checkout@v6
68-
- name: Setup Node
69-
uses: ./
70-
with:
71-
node-version: ${{ matrix.node-version }}
72-
- name: Verify node and npm
73-
run: |
74-
canaryVersion="${{ matrix.node-version }}"
75-
majorVersion=$(echo $canaryVersion | cut -d- -f1)
76-
__tests__/verify-node.sh "$majorVersion"
77-
shell: bash
78-
79-
nightly-syntax:
80-
runs-on: ${{ matrix.os }}
81-
strategy:
82-
fail-fast: false
83-
matrix:
84-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
85-
node-version: [20-nightly, 25-nightly, 24.0.0-nightly]
86-
steps:
87-
- uses: actions/checkout@v6
88-
- name: Setup Node
89-
uses: ./
90-
with:
91-
node-version: ${{ matrix.node-version }}
92-
- name: Verify node and npm
93-
run: |
94-
nightlyVersion="${{ matrix.node-version }}"
95-
majorVersion=$(echo $nightlyVersion | cut -d- -f1)
96-
__tests__/verify-node.sh "$majorVersion"
97-
shell: bash
98-
99-
rc-syntax:
100-
runs-on: ${{ matrix.os }}
101-
strategy:
102-
fail-fast: false
103-
matrix:
104-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
105-
node-version: [20.0.0-rc.1, 22.14.0-rc.1, 24.0.0-rc.4]
106-
steps:
107-
- uses: actions/checkout@v6
108-
- name: Setup Node
109-
uses: ./
110-
with:
111-
node-version: ${{ matrix.node-version }}
112-
- name: Verify node and npm
113-
run: |
114-
rcVersion="${{ matrix.node-version }}"
115-
majorVersion=$(echo $rcVersion | cut -d- -f1)
116-
__tests__/verify-node.sh "$majorVersion"
117-
shell: bash
118-
11932
manifest:
12033
runs-on: ${{ matrix.os }}
12134
strategy:
12235
fail-fast: false
12336
matrix:
124-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
37+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
12538
node-version: [20.10.0, 22.0.0, 24.9.0]
12639
steps:
12740
- uses: actions/checkout@v6
@@ -138,7 +51,7 @@ jobs:
13851
strategy:
13952
fail-fast: false
14053
matrix:
141-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
54+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
14255
node-version: [20, 22, 24]
14356
steps:
14457
- uses: actions/checkout@v6
@@ -156,7 +69,7 @@ jobs:
15669
strategy:
15770
fail-fast: false
15871
matrix:
159-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
72+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
16073
node-version-file:
16174
[.nvmrc, .tool-versions, .tool-versions-node, package.json]
16275
steps:
@@ -188,7 +101,7 @@ jobs:
188101
strategy:
189102
fail-fast: false
190103
matrix:
191-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
104+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
192105
steps:
193106
- uses: actions/checkout@v6
194107
- name: Setup node from node version file
@@ -203,7 +116,7 @@ jobs:
203116
strategy:
204117
fail-fast: false
205118
matrix:
206-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
119+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
207120
steps:
208121
- uses: actions/checkout@v6
209122
- name: Setup node from node version file
@@ -218,7 +131,7 @@ jobs:
218131
strategy:
219132
fail-fast: false
220133
matrix:
221-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
134+
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest]
222135
node-version: [17, 19]
223136
steps:
224137
- uses: actions/checkout@v6
@@ -235,7 +148,7 @@ jobs:
235148
strategy:
236149
fail-fast: false
237150
matrix:
238-
os: [ubuntu-latest, windows-latest, macos-latest-large]
151+
os: [ubuntu-latest, windows-latest, macos-15-intel]
239152
steps:
240153
- uses: actions/checkout@v6
241154
# test old versions which didn't have npm and layout different
@@ -259,34 +172,3 @@ jobs:
259172
- name: Verify node
260173
run: __tests__/verify-arch.sh "ia32"
261174
shell: bash
262-
263-
node-latest-aliases:
264-
runs-on: ${{ matrix.os }}
265-
strategy:
266-
fail-fast: false
267-
matrix:
268-
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
269-
node-version: [current, latest, node]
270-
steps:
271-
- name: Get node version
272-
run: |
273-
latestNodeVersion=$(curl https://nodejs.org/dist/index.json | jq -r '. [0].version')
274-
echo "LATEST_NODE_VERSION=$latestNodeVersion" >> $GITHUB_OUTPUT
275-
id: version
276-
shell: bash
277-
- uses: actions/checkout@v6
278-
- name: Setup Node
279-
uses: ./
280-
with:
281-
node-version: ${{ matrix.node-version }}
282-
- name: Retrieve version after install
283-
run: |
284-
updatedVersion=$(echo $(node --version))
285-
echo "NODE_VERSION_UPDATED=$updatedVersion" >> $GITHUB_OUTPUT
286-
id: updatedVersion
287-
shell: bash
288-
- name: Compare versions
289-
if: ${{ steps.version.outputs.LATEST_NODE_VERSION != steps.updatedVersion.outputs.NODE_VERSION_UPDATED}}
290-
run: |
291-
echo "Latest node version failed to download."
292-
exit 1

.licensed.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,35 @@ allowed:
1313

1414
reviewed:
1515
npm:
16-
- "@actions/http-client"
16+
- "@actions/http-client"
17+
18+
# Platform-specific optional binaries cannot be reliably cached across environments
19+
ignored:
20+
npm:
21+
- "@esbuild/aix-ppc64"
22+
- "@esbuild/android-arm"
23+
- "@esbuild/android-arm64"
24+
- "@esbuild/android-x64"
25+
- "@esbuild/darwin-arm64"
26+
- "@esbuild/darwin-x64"
27+
- "@esbuild/freebsd-arm64"
28+
- "@esbuild/freebsd-x64"
29+
- "@esbuild/linux-arm"
30+
- "@esbuild/linux-arm64"
31+
- "@esbuild/linux-ia32"
32+
- "@esbuild/linux-loong64"
33+
- "@esbuild/linux-mips64el"
34+
- "@esbuild/linux-ppc64"
35+
- "@esbuild/linux-riscv64"
36+
- "@esbuild/linux-s390x"
37+
- "@esbuild/linux-x64"
38+
- "@esbuild/netbsd-arm64"
39+
- "@esbuild/netbsd-x64"
40+
- "@esbuild/openbsd-arm64"
41+
- "@esbuild/openbsd-x64"
42+
- "@esbuild/openharmony-arm64"
43+
- "@esbuild/sunos-x64"
44+
- "@esbuild/win32-arm64"
45+
- "@esbuild/win32-ia32"
46+
- "@esbuild/win32-x64"
47+
- fsevents

.licenses/npm/@actions/cache.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/core-2.0.3.dep.yml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/glob.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@azure/core-http-compat.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@azure/core-rest-pipeline.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@azure/storage-blob.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)