33 push :
44 branches :
55 - main
6+
7+ permissions :
8+ id-token : write
9+ contents : write
10+
611concurrency :
712 group : build-${{ github.ref }}
813 cancel-in-progress : false
@@ -16,18 +21,18 @@ jobs:
1621 node : x64
1722 command : prebuildify
1823 - name : win32-x64
19- os : windows-2019
24+ os : windows-2022
2025 node : x64
2126 command : prebuildify
2227 name : Build ${{ matrix.name }}
2328 runs-on : ${{ matrix.os }}
2429 steps :
2530 - if : matrix.node
26- uses : actions/setup-node@v3
31+ uses : actions/setup-node@v4
2732 with :
28- node-version : 16 .x
33+ node-version : 20 .x
2934 architecture : ${{ matrix.node }}
30- - uses : actions/checkout@v3
35+ - uses : actions/checkout@v4
3136 - uses : actions/setup-python@v4
3237 with :
3338 python-version : 3.8
4651 name : Release
4752 runs-on : ubuntu-latest
4853 steps :
49- - uses : actions/checkout@v3
54+ - uses : actions/checkout@v4
5055 - uses : actions/download-artifact@v4
5156 with :
5257 name : build-artifacts-darwin-${{ github.run_id }}
@@ -55,16 +60,20 @@ jobs:
5560 with :
5661 name : build-artifacts-win32-x64-${{ github.run_id }}
5762 path : prebuilds/
58- - uses : actions/setup-node@v3
63+ - uses : actions/setup-node@v4
5964 with :
60- node-version : 16.x
65+ node-version : 20
6166 - uses : actions/setup-python@v4
6267 with :
6368 python-version : 3.8
69+ registry-url : https://registry.npmjs.org
70+ # Ensure npm 11.5.1 or later is installed
6471 - run : pip3 install setuptools
65- - run : npm ci
72+ - name : Update npm
73+ run : npm install -g npm@latest
74+ - run : npm ci --ignore-scripts
75+ - run : npm config set registry https://registry.npmjs.org
6676 - run : npm run build
6777 - run : npm run semantic-release
6878 env :
69- GH_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
70- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
79+ GH_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
0 commit comments