File tree Expand file tree Collapse file tree 2 files changed +64
-3
lines changed
Expand file tree Collapse file tree 2 files changed +64
-3
lines changed Original file line number Diff line number Diff line change 88 types : [published]
99
1010jobs :
11+ lint :
12+ name : Lint
13+ runs-on : ubuntu-22.04
14+ steps :
15+ - uses : actions/checkout@v2
16+ - uses : actions/setup-node@v3
17+ with :
18+ node-version : 16
19+ - name : Install dependencies
20+ run : npm ci
21+ - name : Run lint
22+ run : npm run test:lint
23+
24+ check-types :
25+ name : Check types
26+ runs-on : ubuntu-22.04
27+ steps :
28+ - uses : actions/checkout@v2
29+ - uses : actions/setup-node@v3
30+ with :
31+ node-version : 16
32+ - name : Install dependencies
33+ run : npm ci
34+ - name : Run types tests
35+ run : npm run test:types
36+
1137 publish-npm :
12- runs-on : ubuntu-latest
38+ runs-on : ubuntu-22.04
39+ needs : [lint, check-types]
1340 steps :
1441 - uses : actions/checkout@v2
15- - uses : actions/setup-node@v1
42+ - uses : actions/setup-node@v3
1643 with :
17- node-version : 14
44+ node-version : 16
1845 registry-url : https://registry.npmjs.org/
1946 - run : |
47+ npm install -g npm@9
2048 npm ci
2149 npm run build
2250 npm publish
Original file line number Diff line number Diff line change 1+ name : Push to dev branch
2+
3+ on :
4+ push :
5+ branches :
6+ - " [0-9]+-dev"
7+
8+ jobs :
9+ lint :
10+ name : Lint
11+ runs-on : ubuntu-22.04
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : actions/setup-node@v3
15+ with :
16+ node-version : 16
17+ - name : Install dependencies
18+ run : npm ci
19+ - name : Run lint
20+ run : npm run test:lint
21+
22+ check-types :
23+ name : Check types
24+ runs-on : ubuntu-22.04
25+ steps :
26+ - uses : actions/checkout@v2
27+ - uses : actions/setup-node@v3
28+ with :
29+ node-version : 16
30+ - name : Install dependencies
31+ run : npm ci
32+ - name : Run types tests
33+ run : npm run test:types
You can’t perform that action at this time.
0 commit comments