File tree Expand file tree Collapse file tree 3 files changed +29
-53
lines changed Expand file tree Collapse file tree 3 files changed +29
-53
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
4
- name : Node.js CI
4
+ name : Node.js Test CI
5
5
6
6
on :
7
7
push :
13
13
build :
14
14
15
15
runs-on : ubuntu-latest
16
-
16
+ if : " !contains(github.event.head_commit.message, '[ci skip]') "
17
17
strategy :
18
18
matrix :
19
19
node-version : [10.16, 10.19, 12.16, 12.19]
27
27
- run : npm ci
28
28
- run : npm test
29
29
- run : npm run report-coverage
30
+
31
+ sizewatcher :
32
+ runs-on : ubuntu-latest
33
+ if : " !contains(github.event.head_commit.message, '[ci skip]')"
34
+ steps :
35
+ - uses : actions/checkout@v2
36
+ - run : npx @adobe/sizewatcher
37
+ semantic-release :
38
+ runs-on : ubuntu-latest
39
+ needs : [build]
40
+ if : ${{ !contains(github.event.head_commit.message, '[ci skip]') && github.ref == 'refs/heads/master' }}
41
+ steps :
42
+ - uses : actions/checkout@v2
43
+ with :
44
+ persist-credentials : false
45
+ - name : Use Node.js 12.19
46
+ uses : actions/setup-node@v1
47
+ with :
48
+ node-version : ' 12.19'
49
+ - run : npm install
50
+ - run : npm run semantic-release
51
+ env :
52
+ GITHUB_TOKEN : ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
53
+ NPM_TOKEN : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
54
+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 37
37
"test" : " nyc mocha --recursive --exit" ,
38
38
"posttest" : " eslint . && license-checker --summary" ,
39
39
"report-coverage" : " nyc report --reporter=text-lcov > coverage.lcov && codecov" ,
40
- "beautify" : " eslint . --fix"
40
+ "beautify" : " eslint . --fix" ,
41
+ "semantic-release" : " semantic-release"
41
42
}
42
43
}
You can’t perform that action at this time.
0 commit comments