@@ -2,45 +2,44 @@ name: CI
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
88
99 workflow_dispatch :
1010
1111jobs :
1212 quality :
13-
1413 runs-on : ubuntu-latest
1514
1615 strategy :
1716 matrix :
18- node-version : [ 12 .x, 14 .x, 16.x ]
17+ node-version : [16 .x, 18 .x, 20.x ]
1918
2019 steps :
21- - uses : actions/checkout@v2
22- - name : Use Node.js ${{ matrix.node-version }}
23- uses : actions/setup-node@v2
24- with :
25- node-version : ${{ matrix.node-version }}
26- cache : ' npm'
27- - run : npm ci
28- - run : npm run build --if-present
29- - run : npm test
20+ - uses : actions/checkout@v3
21+ - name : Use Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v3
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ cache : " npm"
26+ - run : npm ci
27+ - run : npm run build --if-present
28+ - run : npm test
3029
3130 publish :
3231 runs-on : ubuntu-latest
3332 if : ${{ github.ref == 'refs/heads/main' }}
34- needs : [ quality ]
33+ needs : [quality]
3534 steps :
36- - uses : actions/checkout@v2
35+ - uses : actions/checkout@v3
3736 - name : Use Node.js ${{ matrix.node-version }}
38- uses : actions/setup-node@v2
37+ uses : actions/setup-node@v3
3938 with :
4039 node-version : ${{ matrix.node-version }}
4140 - run : npm ci
4241 - run : npm run build
4342 - run : npm run semantic-release
4443 env :
4544 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
46- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments