@@ -3,53 +3,53 @@ name: ci
3
3
on : [push]
4
4
5
5
jobs :
6
- compile :
7
- runs-on : ubuntu-latest
6
+ compile :
7
+ runs-on : ubuntu-latest
8
8
9
- steps :
10
- - name : Checkout repo
11
- uses : actions/checkout@v3
9
+ steps :
10
+ - name : Checkout repo
11
+ uses : actions/checkout@v3
12
12
13
- - name : Set up node
14
- uses : actions/setup-node@v3
13
+ - name : Set up node
14
+ uses : actions/setup-node@v3
15
15
16
- - name : Compile
17
- run : yarn && yarn build
16
+ - name : Compile
17
+ run : yarn && yarn build
18
18
19
- test :
20
- runs-on : ubuntu-latest
19
+ test :
20
+ runs-on : ubuntu-latest
21
21
22
- steps :
23
- - name : Checkout repo
24
- uses : actions/checkout@v3
22
+ steps :
23
+ - name : Checkout repo
24
+ uses : actions/checkout@v3
25
25
26
- - name : Set up node
27
- uses : actions/setup-node@v3
26
+ - name : Set up node
27
+ uses : actions/setup-node@v3
28
28
29
- - name : Compile
30
- run : yarn && yarn test
29
+ - name : Compile
30
+ run : yarn && yarn test
31
31
32
- publish :
33
- needs : [compile, test]
34
- if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
35
- runs-on : ubuntu-latest
32
+ publish :
33
+ needs : [ compile, test ]
34
+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
35
+ runs-on : ubuntu-latest
36
36
37
- steps :
38
- - name : Checkout repo
39
- uses : actions/checkout@v3
37
+ steps :
38
+ - name : Checkout repo
39
+ uses : actions/checkout@v3
40
40
41
- - name : Set up node
42
- uses : actions/setup-node@v3
41
+ - name : Set up node
42
+ uses : actions/setup-node@v3
43
43
44
- - name : Install dependencies
45
- run : yarn install
44
+ - name : Install dependencies
45
+ run : yarn install
46
46
47
- - name : Build
48
- run : yarn build
47
+ - name : Build
48
+ run : yarn build
49
49
50
- - name : Publish to npm
51
- run : |
52
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
53
- npm publish --access public
54
- env :
55
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
50
+ - name : Publish to npm
51
+ run : |
52
+ npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
53
+ npm publish --access public
54
+ env :
55
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments