@@ -11,19 +11,47 @@ jobs:
11
11
build_date : ${{ steps.data.outputs.builddate }}
12
12
version : ${{ steps.data.outputs.version }}
13
13
steps :
14
+ - name : Install Node.js
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 16
18
+
14
19
- uses : actions/checkout@v3
15
20
with :
16
21
submodules : recursive
17
22
token : ${{ secrets.ROBOT_TOKEN }}
18
23
24
+ - uses : pnpm/action-setup@v2
25
+ name : Install pnpm
26
+ id : pnpm-install
27
+ with :
28
+ version : 7
29
+ run_install : false
30
+
31
+ - name : Get pnpm store directory
32
+ id : pnpm-cache
33
+ shell : bash
34
+ run : |
35
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
36
+
37
+ - uses : actions/cache@v3
38
+ name : Setup pnpm cache
39
+ with :
40
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
41
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42
+ restore-keys : |
43
+ ${{ runner.os }}-pnpm-store-
44
+
45
+ - name : Install dependencies
46
+ run : pnpm install
47
+
19
48
- name : Setup gluon
20
49
run : |
21
- yarn
22
50
npm i -g gluon-build@next
23
51
24
52
- name : Bump version
25
53
run : |
26
- yarn gluon ci --brand alpha --bump prerelease
54
+ pnpm gluon ci --brand alpha --bump prerelease
27
55
28
56
- name : Debug
29
57
run : |
49
77
needs : [build-data]
50
78
51
79
steps :
80
+ - name : Install Node.js
81
+ uses : actions/setup-node@v3
82
+ with :
83
+ node-version : 16
84
+
52
85
- uses : actions/checkout@v3
53
86
with :
54
87
submodules : recursive
@@ -99,19 +132,39 @@ jobs:
99
132
with :
100
133
path : /home/runner/.cache/sccache
101
134
key : ${{ runner.os }}-sccache
135
+
136
+ - uses : pnpm/action-setup@v2
137
+ name : Install pnpm
138
+ id : pnpm-install
139
+ with :
140
+ version : 7
141
+ run_install : false
102
142
103
- - name : Setup gluon
143
+ - name : Get pnpm store directory
144
+ id : pnpm-cache
145
+ shell : bash
104
146
run : |
105
- yarn
147
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
148
+
149
+ - uses : actions/cache@v3
150
+ name : Setup pnpm cache
151
+ with :
152
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
153
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
154
+ restore-keys : |
155
+ ${{ runner.os }}-pnpm-store-
156
+
157
+ - name : Install dependencies
158
+ run : pnpm install
106
159
107
160
- name : Load gluon CI setup
108
- run : yarn gluon ci --brand alpha --display-version ${{ needs.build-data.outputs.version }}
161
+ run : pnpm gluon ci --brand alpha --display-version ${{ needs.build-data.outputs.version }}
109
162
110
163
- name : Download firefox source and dependencies
111
- run : yarn download
164
+ run : pnpm download
112
165
113
166
- name : Import
114
- run : yarn imp
167
+ run : pnpm imp
115
168
116
169
- name : Bootstrap
117
170
run : |
@@ -120,10 +173,10 @@ jobs:
120
173
cd ..
121
174
122
175
- name : Build
123
- run : yarn build
176
+ run : pnpm build
124
177
125
178
- name : Package
126
- run : yarn package
179
+ run : pnpm package
127
180
128
181
- name : Rename artifacts
129
182
run : |
@@ -153,6 +206,11 @@ jobs:
153
206
needs : [build-data]
154
207
155
208
steps :
209
+ - name : Install Node.js
210
+ uses : actions/setup-node@v3
211
+ with :
212
+ node-version : 16
213
+
156
214
- uses : actions/checkout@v3
157
215
with :
158
216
submodules : recursive
@@ -186,17 +244,37 @@ jobs:
186
244
path : ~/Library/Caches/Mozilla.sccache
187
245
key : ${{ runner.os }}-sccache
188
246
189
- - name : Setup gluon
190
- run : yarn
247
+ - uses : pnpm/action-setup@v2
248
+ name : Install pnpm
249
+ id : pnpm-install
250
+ with :
251
+ version : 7
252
+ run_install : false
191
253
254
+ - name : Get pnpm store directory
255
+ id : pnpm-cache
256
+ shell : bash
257
+ run : |
258
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
259
+
260
+ - uses : actions/cache@v3
261
+ name : Setup pnpm cache
262
+ with :
263
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
264
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
265
+ restore-keys : |
266
+ ${{ runner.os }}-pnpm-store-
267
+
268
+ - name : Install dependencies
269
+ run : pnpm install
192
270
- name : Load gluon CI setup
193
- run : yarn gluon ci -- --brand alpha --display-version ${{ needs.build-data.outputs.version }}
271
+ run : pnpm gluon ci -- --brand alpha --display-version ${{ needs.build-data.outputs.version }}
194
272
195
273
- name : Download firefox source and dependancies
196
- run : yarn download
274
+ run : pnpm download
197
275
198
276
- name : Import
199
- run : yarn imp
277
+ run : pnpm imp
200
278
201
279
- name : Bootstrap
202
280
run : |
@@ -205,10 +283,10 @@ jobs:
205
283
cd ..
206
284
207
285
- name : Gluon build
208
- run : yarn build --verbose
286
+ run : pnpm build --verbose
209
287
210
288
- name : Package
211
- run : yarn gluon package
289
+ run : pnpm gluon package
212
290
213
291
- name : Rename artifacts
214
292
run : |
@@ -238,6 +316,11 @@ jobs:
238
316
needs : [build-data]
239
317
240
318
steps :
319
+ - name : Install Node.js
320
+ uses : actions/setup-node@v3
321
+ with :
322
+ node-version : 16
323
+
241
324
- uses : actions/checkout@v3
242
325
with :
243
326
submodules : recursive
@@ -247,17 +330,38 @@ jobs:
247
330
git config --global user.email "[email protected] "
248
331
git config --global user.name "TrickyPR"
249
332
250
- - name : Setup gluon
251
- run : yarn
333
+ - uses : pnpm/action-setup@v2
334
+ name : Install pnpm
335
+ id : pnpm-install
336
+ with :
337
+ version : 7
338
+ run_install : false
339
+
340
+ - name : Get pnpm store directory
341
+ id : pnpm-cache
342
+ shell : bash
343
+ run : |
344
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
345
+
346
+ - uses : actions/cache@v3
347
+ name : Setup pnpm cache
348
+ with :
349
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
350
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
351
+ restore-keys : |
352
+ ${{ runner.os }}-pnpm-store-
353
+
354
+ - name : Install dependencies
355
+ run : pnpm install
252
356
253
357
- name : Load gluon CI setup
254
- run : yarn gluon ci -- --brand alpha --display-version ${{ needs.build-data.outputs.version }}
358
+ run : pnpm gluon ci -- --brand alpha --display-version ${{ needs.build-data.outputs.version }}
255
359
256
360
- name : Download firefox source and dependancies
257
- run : yarn download --verbose
361
+ run : pnpm download --verbose
258
362
259
363
- name : Import
260
- run : yarn imp --verbose
364
+ run : pnpm imp --verbose
261
365
262
366
- name : Compress
263
367
run : |
@@ -283,28 +387,28 @@ jobs:
283
387
284
388
- name : Install dependencies
285
389
run : |
286
- yarn
390
+ pnpm i
287
391
288
392
- name : Load gluon CI setup
289
- run : yarn gluon ci -- --brand alpha --display-version ${{ needs.build-data.outputs.version }}
393
+ run : pnpm gluon ci -- --brand alpha --display-version ${{ needs.build-data.outputs.version }}
290
394
291
395
- name : Download
292
- run : yarn download
396
+ run : pnpm download
293
397
294
398
- name : Import
295
- run : yarn imp
399
+ run : pnpm imp
296
400
297
401
- name : Build
298
402
shell : powershell.exe C:\mozilla-build\start-shell.bat "{0}"
299
403
run : |
300
404
cd /c/actions-runner/_work/browser/browser # mozillabuild defaults to ~
301
- yarn build --skip-patch-check
405
+ pnpm build --skip-patch-check
302
406
303
407
- name : Package
304
408
shell : powershell.exe C:\mozilla-build\start-shell.bat "{0}"
305
409
run : |
306
410
cd /c/actions-runner/_work/browser/browser # mozillabuild defaults to ~
307
- yarn package
411
+ pnpm package
308
412
mv ./dist/output.mar windows.mar
309
413
310
414
- name : Upload artifact
0 commit comments