File tree Expand file tree Collapse file tree 1 file changed +36
-9
lines changed
Expand file tree Collapse file tree 1 file changed +36
-9
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,36 @@ permissions:
1515 contents : read
1616
1717jobs :
18+ prepare :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Harden Runner
22+ uses : step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
23+ with :
24+ egress-policy : audit
25+
26+ - name : Git Checkout (Node.js Repo)
27+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+ with :
29+ persist-credentials : false
30+ repository : nodejs/node
31+ sparse-checkout : |
32+ doc/api
33+ lib
34+ path : node
35+
36+ - name : Create Node.js Repository Archive
37+ run : tar -czf node-repo.tar.gz node
38+
39+ - name : Upload Node.js Repository Archive
40+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
41+ with :
42+ name : node-repository
43+ path : node-repo.tar.gz
44+ retention-days : 1
45+
1846 generate :
47+ needs : prepare
1948 runs-on : ubuntu-latest
2049 strategy :
2150 matrix :
@@ -44,20 +73,18 @@ jobs:
4473 with :
4574 egress-policy : audit
4675
47- - name : Git Checkout
76+ - name : Git Checkout (Current Repo)
4877 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4978 with :
5079 persist-credentials : false
5180
52- - name : Git Checkout
53- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
81+ - name : Download Node.js Repository
82+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.1.5
5483 with :
55- persist-credentials : false
56- repository : nodejs/node
57- sparse-checkout : |
58- doc/api
59- lib
60- path : node
84+ name : node-repository
85+
86+ - name : Extract Node.js Repository
87+ run : tar -xzf node-repo.tar.gz
6188
6289 - name : Setup Node.js
6390 uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
You can’t perform that action at this time.
0 commit comments