Skip to content

Commit f6a8452

Browse files
committed
Upgrades the build action to use latest Node LTS version and fixes an issue with the -v flag.
1 parent 90c70b6 commit f6a8452

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/setup-node@v4
3131
with:
32-
node-version: 22
32+
node-version: 24
3333

3434
- run: npm ci
3535

@@ -61,7 +61,7 @@ jobs:
6161
- uses: actions/setup-node@v4
6262
id: setup-node
6363
with:
64-
node-version: 22
64+
node-version: 24
6565

6666
- run: npm ci
6767

@@ -79,6 +79,7 @@ jobs:
7979
id: node-x64
8080
run: |
8181
NODE_VERSION="${{ steps.setup-node.outputs.node-version }}"
82+
NODE_VERSION="${NODE_VERSION#v}"
8283
TARBALL="node-v${NODE_VERSION}-darwin-x64.tar.gz"
8384
URL="https://nodejs.org/dist/v${NODE_VERSION}/${TARBALL}"
8485
echo "Downloading ${URL}"

scripts/sea-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function main() {
6565
entryPoints: [path.join(ROOT, 'src/index.ts')],
6666
bundle: true,
6767
platform: 'node',
68-
target: 'node22',
68+
target: 'node24',
6969
format: 'cjs',
7070
outfile: BUNDLE,
7171
});

0 commit comments

Comments
 (0)