30
30
- name : Set up Node.js
31
31
uses : actions/setup-node@v3
32
32
with :
33
- node-version : ' 18 '
33
+ node-version : ' latest '
34
34
cache : ' yarn'
35
35
36
36
- name : Reconfigure git to use HTTP authentication
@@ -56,25 +56,26 @@ jobs:
56
56
cp dist/latest-mac.yml dist/latest-mac-x64.yml
57
57
shell : bash
58
58
- name : Save latest-mac-x64.yml as an artifact
59
- uses : actions/upload-artifact@v2
59
+ uses : actions/upload-artifact@v4
60
60
with :
61
61
name : latest-mac-x64
62
62
path : dist/latest-mac-x64.yml
63
+ if-no-files-found : error
63
64
64
65
release-arm64 :
65
66
runs-on : macos-latest-xlarge
66
67
67
68
steps :
68
69
- name : Checkout code
69
- uses : actions/checkout@v3
70
+ uses : actions/checkout@v4
70
71
with :
71
72
submodules : ' recursive'
72
73
token : ${{ secrets.pat }}
73
74
74
75
- name : Set up Node.js
75
- uses : actions/setup-node@v3
76
+ uses : actions/setup-node@v4
76
77
with :
77
- node-version : ' 18 '
78
+ node-version : ' latest '
78
79
cache : ' yarn'
79
80
80
81
- name : Reconfigure git to use HTTP authentication
@@ -100,10 +101,11 @@ jobs:
100
101
cp dist/latest-mac.yml dist/latest-mac-arm64.yml
101
102
shell : bash
102
103
- name : Save latest-mac-arm64.yml as an artifact
103
- uses : actions/upload-artifact@v2
104
+ uses : actions/upload-artifact@v4
104
105
with :
105
106
name : latest-mac-arm64
106
107
path : dist/latest-mac-arm64.yml
108
+ if-no-files-found : error
107
109
108
110
generate-latest-mac :
109
111
needs :
@@ -113,12 +115,12 @@ jobs:
113
115
114
116
steps :
115
117
- name : Checkout code
116
- uses : actions/checkout@v3
118
+ uses : actions/checkout@v4
117
119
118
120
- name : Set up Node.js
119
- uses : actions/setup-node@v3
121
+ uses : actions/setup-node@v4
120
122
with :
121
- node-version : ' 18 '
123
+ node-version : ' latest '
122
124
cache : ' yarn'
123
125
124
126
- name : Reconfigure git to use HTTP authentication
@@ -133,19 +135,19 @@ jobs:
133
135
run : yarn setup
134
136
135
137
- name : Download artifacts from release-x64 and release-arm64 jobs
136
- uses : actions/download-artifact@v2
138
+ uses : actions/download-artifact@v4
137
139
with :
138
140
name : latest-mac-x64
139
141
path : dist-x64
140
142
141
- - uses : actions/download-artifact@v2
143
+ - uses : actions/download-artifact@v4
142
144
with :
143
145
name : latest-mac-arm64
144
146
path : dist-arm64
145
147
146
148
- name : Merge YMLs
147
149
run : |
148
- npm install js-yaml
150
+ yarn add js-yaml
149
151
node merge-yml.js
150
152
working-directory : ${{ github.workspace }}
151
153
0 commit comments