88 runs-on : ubuntu-latest
99 # if: startsWith(github.ref, 'refs/tags/') || github.head_ref || ${{ env.ACT }}
1010 steps :
11- - uses : actions/checkout@v3
12- - uses : volta-cli/action@v4
11+ - uses : actions/checkout@v7
12+ - uses : volta-cli/action@v5
1313 with :
14- node-version : 18
14+ node-version : 24
1515 - run : npm ci
1616 - run : npm run lint
1717 - run : npm run build
@@ -22,12 +22,13 @@ jobs:
2222 - uses : montudor/action-zip@v1
2323 with :
2424 args : zip -0 -qq -r node_modules.zip node_modules
25- - uses : actions/upload-artifact@v3
25+ - uses : actions/upload-artifact@v4
2626 with :
2727 name : node-modules-artifact-${{ github.run_number }}
2828 retention-days : 1
2929 path : node_modules.zip
30- - uses : actions/upload-artifact@v3
30+ compression-level : 0
31+ - uses : actions/upload-artifact@v4
3132 with :
3233 name : build-artifact-${{ github.run_number }}
3334 retention-days : 1
@@ -43,20 +44,20 @@ jobs:
4344 needs : build
4445 runs-on : ubuntu-latest
4546 steps :
46- - uses : actions/download-artifact@v3
47+ - uses : actions/download-artifact@v4
4748 with :
4849 name : build-artifact-${{ github.run_number }}
49- - uses : actions/download-artifact@v3
50+ - uses : actions/download-artifact@v4
5051 with :
5152 name : node-modules-artifact-${{ github.run_number }}
5253 - uses : montudor/action-zip@v1
5354 with :
5455 args : unzip -qq node_modules.zip -d .
5556 - uses : volta-cli/action@v4
5657 with :
57- node-version : 18
58+ node-version : 24
5859 - run : npm run coverage
59- - uses : actions/upload-artifact@v3
60+ - uses : actions/upload-artifact@v4
6061 with :
6162 name : coverage-${{ github.run_number }}
6263 retention-days : 1
@@ -71,13 +72,13 @@ jobs:
7172 needs : build
7273 strategy :
7374 matrix :
74- node : ['7.10.1', 10, 16] # 18 is tested by coverage in build stage
75+ node : ['7.10.1', 10, 16, 18]
7576 runs-on : ubuntu-latest
7677 steps :
77- - uses : actions/download-artifact@v3
78+ - uses : actions/download-artifact@v4
7879 with :
7980 name : build-artifact-${{ github.run_number }}
80- - uses : actions/download-artifact@v3
81+ - uses : actions/download-artifact@v4
8182 with :
8283 name : node-modules-artifact-${{ github.run_number }}
8384 - uses : montudor/action-zip@v1
8687 - uses : volta-cli/action@v4
8788 with :
8889 node-version : ${{ matrix.node }}
89- - run : volta run --node ${{ matrix.node }} npm test
90-
91- deploy :
92- needs : [test, coverage]
93- runs-on : ubuntu-latest
94- environment : deploy
95- if : startsWith(github.ref, 'refs/tags/')
96- steps :
97- # Setup .npmrc file to publish to npm
98- - uses : actions/setup-node@v3
99- with :
100- node-version : 18
101- registry-url : ' https://registry.npmjs.org'
102- - uses : actions/download-artifact@v3
103- with :
104- name : build-artifact-${{ github.run_number }}
105- - run : npm publish --access public
106- if : ${{ !env.ACT }}
107- env :
108- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
90+ - run : volta run --node ${{ matrix.node }} npm test
0 commit comments