This repository was archived by the owner on Jan 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +34
-10
lines changed
Expand file tree Collapse file tree 2 files changed +34
-10
lines changed Original file line number Diff line number Diff line change 1+ name : delivery
2+
3+ on :
4+ push :
5+ tags :
6+ - v*
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout repo
13+ uses : actions/checkout@v2
14+ - name : Use Node.js LTS
15+ uses : actions/setup-node@v1
16+ with :
17+ node-version : 16.x
18+ - name : Install deps
19+ uses : bahmutov/npm-install@v1
20+ - name : Lint
21+ run : yarn lint
22+ - name : Test
23+ run : yarn test --ci
24+ - name : Build
25+ run : yarn build
26+ - name : Publish
27+ run : yarn publish --access public
28+ env :
29+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 55
66jobs :
77 build :
8- name : Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
9- runs-on : ${{ matrix.os }}
10- strategy :
11- matrix :
12- node : ['10.x', '12.x', '14.x']
13- os : [ubuntu-latest, windows-latest, macOS-latest]
8+ runs-on : ubuntu-latest
149 steps :
1510 - name : Checkout repo
1611 uses : actions/checkout@v2
17- - name : Use Node ${{ matrix.node }}
12+ - name : Use Node.js LTS
1813 uses : actions/setup-node@v1
1914 with :
20- node-version : ${{ matrix.node }}
21- - name : Install deps and build (with cache)
15+ node-version : 16.x
16+ - name : Install deps
2217 uses : bahmutov/npm-install@v1
2318 - name : Lint
2419 run : yarn lint
2520 - name : Test
26- run : yarn test --ci --coverage --maxWorkers=2
21+ run : yarn test --ci
2722 - name : Build
2823 run : yarn build
You can’t perform that action at this time.
0 commit comments