File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+
8
+ jobs :
9
+ ci :
10
+ runs-on : ${{ matrix.os }}
11
+ strategy :
12
+ matrix :
13
+ include :
14
+ - os : ubuntu-latest
15
+ target-folder : drop-linux
16
+ - os : windows-latest
17
+ target-folder : drop
18
+
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+
22
+ - uses : actions/setup-node@v2
23
+ with :
24
+ node-version : " 20"
25
+
26
+ - name : npm ci
27
+ run : npm ci
28
+
29
+ - name : lint
30
+ run : npm run lint
31
+
32
+ - name : prettier
33
+ run : npm run prettier
34
+
35
+ - name : test
36
+ run : npm test
37
+
38
+ - name : pack
39
+ run : npm pack
40
+
41
+ - name : Copy Files to target-folder
42
+ run : mkdir -p ${{ matrix.target-folder }} && cp *.tgz ${{ matrix.target-folder }}
43
+
44
+ - name : Upload Artifact
45
+ uses : actions/upload-artifact@v2
46
+ with :
47
+ name : ${{ matrix.target-folder }}
48
+ path : ${{ matrix.target-folder }}
You can’t perform that action at this time.
0 commit comments