File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy
2+ on :
3+ push :
4+ # Sequence of patterns matched against refs/tags
5+ tags :
6+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7+ jobs :
8+ build :
9+ runs-on : Ubuntu-latest
10+ strategy :
11+ fail-fast : false
12+ matrix :
13+ node-version : [10, 12.16.3, 14]
14+ name : Node ${{ matrix.node-version }} sample
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up Node ${{ matrix.nodeversion }}
18+ uses : actions/setup-node@v2
19+ with :
20+ node-version : ${{ matrix.node-version }}
21+ registry-url : ' https://registry.npmjs.org'
22+ - name : Install dependencies
23+ run : npm install
24+ - name : Testing
25+ run : npm test
26+ - name : Before deploy
27+ run : npm run docs
28+ - name : Publish
29+ if : ${{ matrix.node-version == '12.16.3' }}
30+ run : npm publish
31+ env :
32+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments