File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717jobs :
1818 build :
1919 runs-on : ubuntu-latest
20+ strategy :
21+ matrix :
22+ node-version : [12.x, 14.x, 16.x]
23+
2024 steps :
21- - uses : actions/checkout@v2
22- - uses : actions/setup-node@v1
25+ - uses : actions/checkout@v3
26+ - name : Use Node.js ${{ matrix.node-version }}
27+ - uses : actions/setup-node@v3
2328 with :
24- node-version : 12
29+ node-version : ${{ matrix.node-version }}
30+ cache : ' npm'
2531 - run : npm ci
2632 - run : npm test
2733
2834 publish-npm :
2935 needs : build
3036 runs-on : ubuntu-latest
3137 steps :
32- - uses : actions/checkout@v2
33- - uses : actions/setup-node@v1
38+ - uses : actions/checkout@v3
39+ - uses : actions/setup-node@v3
3440 with :
35- node-version : 12
41+ node-version : 16.x
42+ cache : ' npm'
3643 registry-url : https://registry.npmjs.org/
3744 - run : npm ci
3845 - run : npm publish
You can’t perform that action at this time.
0 commit comments