Commit e37a1db 1 parent 7eb3c51 commit e37a1db Copy full SHA for e37a1db
File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ master ]
6
6
pull_request :
7
7
branches : [ master ]
8
+ release :
9
+ types : [ created ]
8
10
9
11
jobs :
10
12
build :
25
27
26
28
- name : Run test suite
27
29
run : yarn run test
30
+
31
+ publish :
32
+ needs : build
33
+ runs-on : ubuntu-latest
34
+ if : ${{ github.event_name == 'release' }}
35
+
36
+ steps :
37
+ - name : Checkout code
38
+ uses : actions/checkout@v2
39
+
40
+ - name : Setup Node
41
+ uses : actions/setup-node@v1
42
+ with :
43
+ node-version : 12
44
+ registry-url : https://registry.npmjs.org/
45
+
46
+ - name : Install dependencies
47
+ run : yarn install --frozen-lockfile
48
+
49
+ - name : Set new version
50
+ run : npm version --allow-same-version --no-git-tag-version ${{ github.event.release.tag_name }}
51
+
52
+ - name : Publish release
53
+ run : npm publish
54
+ env :
55
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments