File tree Expand file tree Collapse file tree 1 file changed +23
-12
lines changed
Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Original file line number Diff line number Diff line change 77
88jobs :
99 build :
10- permissions :
11- contents : write
12- issues : write
13- pull-requests : write
1410 runs-on : ubuntu-latest
1511 strategy :
1612 matrix :
@@ -32,27 +28,42 @@ jobs:
3228
3329 - name : Install
3430 if : matrix.node-version != '14.x'
35- # Without --ignore-scripts we get "footer's lines must not be longer than 100 characters [footer-max-line-length]"
36- # on the release step
37- run : npm ci --ignore-scripts
31+ run : npm ci
3832
3933 - name : Test
4034 run : npm test
4135
42- - name : Verify Typescript Types
43- if : matrix.node-version == '20.x'
44- run : npm run verify-typescript-types
45-
4636 - name : Lint
4737 if : matrix.node-version == '20.x'
4838 run : npm run lint
4939
40+ - name : Verify Typescript Types
41+ if : matrix.node-version == '20.x'
42+ run : npm run verify-typescript-types
43+
5044 - name : Audit
5145 if : matrix.node-version == '20.x'
5246 run : npm audit --audit-level critical
47+ release :
48+ if : github.event_name == 'push' && github.ref == 'refs/heads/mainline'
49+ permissions :
50+ contents : write
51+ issues : write
52+ pull-requests : write
53+ runs-on : ubuntu-latest
54+ steps :
55+ - name : Checkout
56+ uses : actions/checkout@v4
5357
58+ - name : Use Node.js 20.x
59+ uses : actions/setup-node@v4
60+ with :
61+ node-version : 20.x
62+ - name : Install
63+ # Without --ignore-scripts we get "footer's lines must not be longer than 100 characters [footer-max-line-length]"
64+ # on the release step
65+ run : npm ci --ignore-scripts
5466 - name : Release
55- if : github.event_name == 'push' && github.ref == 'refs/heads/mainline' && matrix.node-version == '20.x'
5667 run : npm run release
5768 env :
5869 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments