Commit e65712b 1 parent 5fdc844 commit e65712b Copy full SHA for e65712b
File tree 2 files changed +34
-24
lines changed
2 files changed +34
-24
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - uses : actions/setup-node@v2
16
+ with :
17
+ node-version : ' 18'
18
+
19
+ - name : Get branch name
20
+ shell : bash
21
+ run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
22
+ id : branch
23
+
24
+ - name : Install dependencies
25
+ run : npm ci
26
+
27
+ - name : Build library
28
+ run : npm run build
29
+
30
+ - name : Run semantic release and publish new version to npm
31
+ env :
32
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
34
+ run : npm run semantic-release
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments