@@ -16,19 +16,19 @@ jobs:
1616 strategy :
1717 matrix :
1818 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19- node-version : [ 16 .x, 18 .x, 20 .x ]
19+ node-version : [ 18 .x, 20 .x, 22 .x ]
2020 steps :
21- - uses : actions/checkout@v3
21+ - uses : actions/checkout@v4
2222 - name : Use Node.js ${{ matrix.node-version }}
23- uses : actions/setup-node@v3
23+ uses : actions/setup-node@v4
2424 with :
2525 node-version : ${{ matrix.node-version }}
2626 cache : ' npm'
2727 - run : npm ci
2828 - run : npm run build
2929 - name : Store artifacts
3030 if : matrix.node-version == '20.x'
31- uses : actions/upload-artifact@v3
31+ uses : actions/upload-artifact@v4
3232 with :
3333 name : build-assets
3434 path : assets/
3939 # Only run when pushing to main branch
4040 if : github.event_name != 'pull_request'
4141 steps :
42- - uses : actions/checkout@v3
42+ - uses : actions/checkout@v4
4343 # Download artifact instead of rebuilding
44- - uses : actions/download-artifact@v3
44+ - uses : actions/download-artifact@v4
4545 with :
4646 name : build-assets
4747 path : assets/
@@ -63,10 +63,10 @@ jobs:
6363 bodyFile : " body.md"
6464 token : ${{ secrets.GITHUB_TOKEN }}
6565 # https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
66- - uses : actions/setup-node@v3
66+ - uses : actions/setup-node@v4
6767 if : ${{ steps.create-tag.outcome == 'success' }}
6868 with :
69- node-version : ' 20 .x'
69+ node-version : ' 22 .x'
7070 registry-url : ' https://registry.npmjs.org'
7171 - run : npm publish ./assets/hsluv-${{ env.HSLUV_VERSION }}.tgz --tag rc
7272 if : ${{ steps.create-tag.outcome == 'success' && contains(env.HSLUV_VERSION, 'rc') }}
0 commit comments