File tree 2 files changed +48
-43
lines changed
2 files changed +48
-43
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ branches : [ master ]
7
+
8
+ env :
9
+ FORCE_COLOR : 1
10
+
11
+ jobs :
12
+ test :
13
+ runs-on : ${{ matrix.os }}
14
+ name : node ${{ matrix.node }} on ${{ matrix.os }}
15
+ strategy :
16
+ matrix :
17
+ node : [20, 18]
18
+ os : [macos-latest, windows-latest, ubuntu-latest]
19
+ include :
20
+ - os : macos-latest
21
+ node : 16
22
+ - os : windows-latest
23
+ node : 14
24
+ - os : ubuntu-latest
25
+ node : 12
26
+ steps :
27
+ - uses : actions/checkout@v3
28
+ - uses : actions/setup-node@v3
29
+ with :
30
+ node-version : ${{ matrix.node }}
31
+ - run : npm install
32
+ - run : npm test
33
+ - name : Inspect tarball
34
+ run : npm pack --dry-run
35
+
36
+ publish :
37
+ needs : test
38
+ runs-on : ubuntu-latest
39
+ if : startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
40
+ steps :
41
+ - uses : actions/checkout@v3
42
+ - uses : actions/setup-node@v3
43
+ with :
44
+ node-version : 16
45
+ registry-url : https://registry.npmjs.org/
46
+ - run : npm publish --loglevel verbose
47
+ env :
48
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments