@@ -3,9 +3,8 @@ name: Node.js CI
3
3
push :
4
4
branches :
5
5
- master
6
- - alpha
7
6
- beta
8
- - ' renovate/**'
7
+ - renovate/**
9
8
pull_request :
10
9
types :
11
10
- opened
@@ -18,49 +17,34 @@ jobs:
18
17
runs-on : ubuntu-latest
19
18
steps :
20
19
- uses : actions/checkout@v2
21
- - name : Read .nvmrc
22
- run : ' echo ::set-output name=NVMRC::$(cat .nvmrc)'
23
- id : nvm
24
20
- name : Setup node
25
21
uses : actions/setup-node@v2
26
22
with :
27
- node-version : ' ${{ steps.nvm.outputs.NVMRC }}'
28
- - uses : bahmutov/npm-install@v1
23
+ node-version-file : .nvmrc
24
+ cache : npm
25
+ - run : npm clean-install
29
26
- run : npm test
30
27
- name : Upload coverage data to Codecov
31
- run : ' npm run coverage:report'
28
+ run : npm run coverage:report
32
29
release :
33
- needs : verify
34
- runs-on : ubuntu-latest
35
- steps :
36
- - uses : actions/checkout@v2
37
- - name : Read .nvmrc
38
- run : ' echo ::set-output name=NVMRC::$(cat .nvmrc)'
39
- id : nvm
40
- - name : Setup node
41
- uses : actions/setup-node@v2
42
- with :
43
- node-version : ' ${{ steps.nvm.outputs.NVMRC }}'
44
- - uses : bahmutov/npm-install@v1
45
- - name : semantic-release
46
- run : npx semantic-release
47
- env :
48
- GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
49
- NPM_TOKEN : ' ${{ secrets.NPM_PUBLISH_TOKEN }}'
30
+ needs :
31
+ - verify
32
+ uses : >-
33
+ form8ion/.github/.github/workflows/release-package-semantic-release-19.yml@master
34
+ secrets :
35
+ NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
50
36
storybook :
51
37
if : github.ref == 'refs/heads/master'
52
38
needs : verify
53
39
runs-on : ubuntu-latest
54
40
steps :
55
41
- uses : actions/checkout@v2
56
- - name : Read .nvmrc
57
- run : ' echo ::set-output name=NVMRC::$(cat .nvmrc)'
58
- id : nvm
59
42
- name : Setup node
60
43
uses : actions/setup-node@v2
61
44
with :
62
- node-version : ' ${{ steps.nvm.outputs.NVMRC }}'
63
- - uses : bahmutov/npm-install@v1
45
+ node-version-file : .nvmrc
46
+ cache : npm
47
+ - run : npm clean-install
64
48
- run : npm run build
65
49
- name : Configure git user for relase to GitHub Pages
66
50
run : |
0 commit comments