File tree 1 file changed +34
-1
lines changed
1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change 7
7
branches : [ "main" ]
8
8
9
9
jobs :
10
- build :
10
+ check :
11
11
runs-on : ubuntu-latest
12
+ name : Check Syntax and code before trying to build
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+
16
+ - name : Use Node.js "20.x"
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : " 20.x"
20
+
21
+ - name : Build
22
+ run : |
23
+ npm install
24
+ npm run build
12
25
26
+ - name : Zip Chrome and firefox folders
27
+ run : |
28
+ zip -r dist/chrome-${{ github.sha }}.zip dist/chrome
29
+ zip -r dist/firefox-${{ github.sha }}.zip dist/firefox
30
+
31
+ - name : Upload Firefox
32
+ uses : actions/upload-artifact@v4
33
+ with :
34
+ name : firefox-zip
35
+ path : dist/firefox-${{ github.sha }}.zip
36
+ - name : Upload Chrome
37
+ uses : actions/upload-artifact@v4
38
+ with :
39
+ name : chrome-zip
40
+ path : dist/chrome-${{ github.sha }}.zip
41
+
42
+ compile :
43
+ runs-on : ubuntu-latest
44
+ needs : check
45
+ name : Build for production
13
46
strategy :
14
47
matrix :
15
48
node-version : [20.x]
You can’t perform that action at this time.
0 commit comments