@@ -4,18 +4,17 @@ name: Node.js CI
4
4
5
5
on :
6
6
push :
7
- branches : [ master ]
7
+ branches : [master]
8
8
pull_request :
9
- branches : [ master ]
9
+ branches : [master]
10
10
11
11
jobs :
12
12
build :
13
-
14
13
runs-on : ubuntu-latest
15
14
16
15
strategy :
17
16
matrix :
18
- node-version : [ 14.x, 16.x, 18.x]
17
+ node-version : [14.x, 16.x, 18.x]
19
18
20
19
steps :
21
20
- uses : actions/checkout@v2
@@ -24,28 +23,24 @@ jobs:
24
23
with :
25
24
node-version : ${{ matrix.node-version }}
26
25
- run : npm ci
26
+ - run : npm install --save-dev https://github.com/basiljs/basil.js#develop
27
27
- run : npm test
28
28
- run : npm run build --if-present
29
29
- run : npm run lint --if-present
30
-
31
- release :
32
- release :
33
- name : semantic-release
34
- needs : [build]
35
- runs-on : ubuntu-latest
36
- outputs :
37
- new-release-published : ${{ steps.semantic-release.outputs.new_release_published }}
38
- new-release-version : ${{ steps.semantic-release.outputs.new_release_version }}
39
- steps :
40
- - uses : actions/checkout@v3
41
- with :
42
- persist-credentials : false
43
- - uses : actions/setup-node@v3
44
- with :
45
- node-version-file : ' .nvmrc'
46
- - run : npm ci
47
- - id : semantic-release
48
- run : npx semantic-release
49
- env :
50
- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
51
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
30
+ release :
31
+ name : semantic-release
32
+ needs : [build]
33
+ runs-on : ubuntu-latest
34
+ steps :
35
+ - uses : actions/checkout@v3
36
+ with :
37
+ persist-credentials : false
38
+ - uses : actions/setup-node@v3
39
+ with :
40
+ node-version-file : " .nvmrc"
41
+ - run : npm ci
42
+ - id : semantic-release
43
+ run : npx semantic-release
44
+ env :
45
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
46
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments