File tree Expand file tree Collapse file tree 2 files changed +82
-25
lines changed Expand file tree Collapse file tree 2 files changed +82
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+ release :
11
+ types :
12
+ - released
13
+
14
+ jobs :
15
+
16
+ test :
17
+ strategy :
18
+ matrix :
19
+ os :
20
+ - ubuntu-latest
21
+ - macos-latest
22
+ - windows-latest
23
+ node :
24
+ - 14
25
+ - 16
26
+ - 18
27
+ name : Testing Node ${{ matrix.node }} on ${{ matrix.os }}
28
+ runs-on : ${{ matrix.os }}
29
+ steps :
30
+ - uses : actions/checkout@v3
31
+ with :
32
+ submodules : true
33
+ fetch-depth : 0
34
+ - uses : actions/setup-node@v3
35
+ with :
36
+ node-version : ${{ matrix.node }}
37
+ - run : npm install
38
+ - run : npm test
39
+
40
+ publish :
41
+ if : ${{ github.event_name == 'release' }}
42
+ name : Publishing to NPM
43
+ runs-on : ubuntu-latest
44
+ needs : test
45
+ steps :
46
+ - uses : actions/checkout@v3
47
+ with :
48
+ submodules : true
49
+ fetch-depth : 0
50
+ - uses : actions/setup-node@v3
51
+ with :
52
+ node-version : 18
53
+ registry-url : https://registry.npmjs.org
54
+ - run : npm publish
55
+ env :
56
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
57
+
58
+ prebuild :
59
+ strategy :
60
+ matrix :
61
+ os :
62
+ - ubuntu-latest
63
+ - macos-latest
64
+ - windows-latest
65
+ name : Prebuild on ${{ matrix.os }}
66
+ runs-on : ${{ matrix.os }}
67
+ needs : publish
68
+ steps :
69
+ - uses : actions/checkout@v3
70
+ with :
71
+ submodules : true
72
+ fetch-depth : 0
73
+ - uses : actions/setup-node@v3
74
+ with :
75
+ node-version : 18
76
+ - run : npm install --ignore-scripts
77
+ - run : npx --no-install prebuild -r node -t 10.0.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 -t 18.0.0 -u ${{ secrets.GITHUB_TOKEN }}
78
+ - run : npx --no-install prebuild -r electron -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 -t 20.0.0 -t 21.0.0 -t 22.0.0 -t 23.0.0 -u ${{ secrets.GITHUB_TOKEN }}
79
+ - if : matrix.os == 'windows-latest'
80
+ run : npx --no-install prebuild -r electron -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 -t 20.0.0 -t 21.0.0 -t 22.0.0 -t 23.0.0 --arch ia32 -u ${{ secrets.GITHUB_TOKEN }}
81
+ - if : matrix.os == 'macos-latest'
82
+ run : npx --no-install prebuild -r electron -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 -t 20.0.0 -t 21.0.0 -t 22.0.0 -t 23.0.0 --arch arm64 -u ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments