This repository was archived by the owner on Apr 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +35
-41
lines changed Expand file tree Collapse file tree 3 files changed +35
-41
lines changed 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 : Node.js CI
5+
6+ on :
7+ push :
8+ branches : [ master ]
9+
10+ jobs :
11+ build-publish :
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - uses : c-hive/gha-yarn-cache@v1
18+ - name : Cancel Previous Runs
19+ uses : styfle/cancel-workflow-action@0.9.1
20+ with :
21+ access_token : ${{ github.token }}
22+ - name : Read .nvmrc
23+ run : echo ::set-output name=NVMRC::$(cat .nvmrc)
24+ id : nvm
25+ - name : Use Node.js ${{ steps.nvm.outputs.NVMRC }}
26+ uses : actions/setup-node@v2
27+ with :
28+ node-version : ${{ steps.nvm.outputs.NVMRC }}
29+ - name : Run yarn tasks
30+ run : |
31+ yarn --silent
32+ - name : Publish NPM package
33+ uses : JS-DevTools/npm-publish@v1
34+ with :
35+ token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 44name : Node.js CI
55
66on :
7- # push:
8- # branches: [ master ]
97 pull_request :
108 branches : [ master ]
119
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments