File tree Expand file tree Collapse file tree 5 files changed +661
-403
lines changed Expand file tree Collapse file tree 5 files changed +661
-403
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will run tests using node and then publish a package to GitHub Packages when a successful unit test
2+ # has been run on master.
3+ # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
4+
5+ name : Release
6+
7+ on :
8+ workflow_run :
9+ workflows : ["Run Tests"]
10+ branches : [master]
11+ types :
12+ - completed
13+
14+ jobs :
15+ release :
16+ name : Semantic Release
17+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v2
22+ - uses : actions/setup-node@v2
23+ with :
24+ node-version : 14
25+ - run : npm ci
26+ - name : Semantic Release
27+ uses : cycjimmy/semantic-release-action@v2.3.0
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
31+
32+ # publish-gpr:
33+ # name: Release to GitHub Packages
34+ # needs: release
35+ # runs-on: ubuntu-latest
36+ # steps:
37+ # - uses: actions/checkout@v2
38+ # - uses: actions/setup-node@v2
39+ # with:
40+ # node-version: 12
41+ # registry-url: https://npm.pkg.github.com/
42+ # - run: npm ci
43+ # - run: npm publish
44+ # env:
45+ # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+ name : Run Tests
5+
6+ on :
7+ push :
8+ branches : [ master ]
9+ pull_request :
10+ branches : [ master ]
11+
12+ jobs :
13+ test :
14+
15+ runs-on : ubuntu-latest
16+
17+ strategy :
18+ matrix :
19+ node-version : ['14']
20+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+ steps :
23+ - uses : actions/checkout@v2
24+ - name : Use Node.js ${{ matrix.node-version }}
25+ uses : actions/setup-node@v2
26+ with :
27+ node-version : ${{ matrix.node-version }}
28+ - run : npm ci
29+ - run : npm run build --if-present
30+ - run : npm test && npm run report-coverage
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments