File tree 3 files changed +18
-7
lines changed
3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 6
6
build :
7
7
8
8
runs-on : ubuntu-latest
9
-
10
- strategy :
11
- matrix :
12
- node-version : [12.x]
13
-
14
9
steps :
15
10
- uses : actions/checkout@v1
16
11
- name : Use Node.js ${{ matrix.node-version }}
17
12
uses : actions/setup-node@v1
18
13
with :
19
- node-version : ${{ matrix.node-version }}
14
+ node-version : 12
20
15
- name : npm install, build, and test
21
16
run : |
22
17
npm ci
Original file line number Diff line number Diff line change 5
5
types : [created]
6
6
7
7
jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v1
12
+ - name : Use Node.js ${{ matrix.node-version }}
13
+ uses : actions/setup-node@v1
14
+ with :
15
+ node-version : 12
16
+ - name : npm install, build, and test
17
+ run : |
18
+ npm ci
19
+ npm run build --if-present
20
+ npm test
21
+ env :
22
+ CI : true
23
+
8
24
publish-npm :
9
25
needs : build
10
26
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 25
25
"scripts" : {
26
26
"test" : " eslint ." ,
27
27
"preversion" : " npm run test" ,
28
- "postversion" : " git push --tags && npm run publish . --new-version $npm_package_version && git push && echo \" Successfully released version $npm_package_version! \" " ,
28
+ "postversion" : " git push --tags && git push && hub release create --browse $npm_package_version" ,
29
29
"run-if-changed" : " ./run-if-changed.js"
30
30
},
31
31
"husky" : {
You can’t perform that action at this time.
0 commit comments