This repository was archived by the owner on Mar 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 17
17
- name : Setup node
18
18
uses : actions/setup-node@v4
19
19
with :
20
- node-version : lts/iron # 20
20
+ node-version : lts/*
21
21
registry-url : https://registry.npmjs.org
22
22
always-auth : true
23
23
- run : npm publish --provenance
50
50
- name : Setup node
51
51
uses : actions/setup-node@v4
52
52
with :
53
- node-version : lts/iron # 20
53
+ node-version : lts/*
54
54
cache : ' npm'
55
55
- run : node .release-notes.cjs
56
56
env :
Original file line number Diff line number Diff line change 18
18
- name : Setup node
19
19
uses : actions/setup-node@v4
20
20
with :
21
- node-version : lts/iron # 20
21
+ node-version : lts/*
22
22
cache : ' npm'
23
23
- run : npm clean-install
24
24
- run : npm run format-check
@@ -31,20 +31,28 @@ jobs:
31
31
- name : Setup node
32
32
uses : actions/setup-node@v4
33
33
with :
34
- node-version : lts/iron # 20
34
+ node-version : lts/*
35
35
cache : ' npm'
36
36
- run : npm clean-install
37
37
- run : npm run test-types
38
38
39
+ node-versions :
40
+ name : Get Node.js Versions
41
+ runs-on : ubuntu-latest
42
+ outputs :
43
+ matrix : ${{ steps.query.outputs.matrix }}
44
+ steps :
45
+ - id : query
46
+ run : |
47
+ echo "matrix=$(curl -s https://raw.githubusercontent.com/actions/node-versions/refs/heads/main/versions-manifest.json | jq -c '[.[] | select(.lts) | select(.version | split(".")[0] | tonumber >= 16) | .lts | ascii_downcase | "lts/\(.)"] + ["current"] | unique')" >> "$GITHUB_OUTPUT"
48
+
39
49
test :
40
50
runs-on : ubuntu-latest
51
+ needs :
52
+ - node-versions
41
53
strategy :
42
54
matrix :
43
- node-version :
44
- - lts/gallium # 16
45
- - lts/hydrogen # 18
46
- - lts/iron # 20
47
- - current
55
+ node-version : ${{ fromJSON(needs.node-versions.outputs.matrix) }}
48
56
steps :
49
57
- uses : actions/checkout@v4
50
58
- uses : actions/setup-node@v4
You can’t perform that action at this time.
0 commit comments