Skip to content

Commit

Permalink
ci: Support node v20.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Dec 12, 2023
1 parent 08b8d74 commit dca603c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] # , windows-latest]
node-version: [16, 18]
node-version: [16, 18, 20]
fail-fast: false # true
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 4 additions & 1 deletion scripts/buildPackages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ if (!fs.existsSync(cjsDir)) {
await fs.promises.mkdir(cjsDir);
}

await fs.promises.writeFile(path.join(cjsDir, 'bin.cjs'), `require('../lib/bin.js');`);
await fs.promises.writeFile(
path.join(cjsDir, 'bin.cjs'),
`#!/usr/bin/env node\nrequire('../lib/bin.js');`,
);

// We need to link the new binaries to node_modules/.bin
await execa('yarn', ['install']);

0 comments on commit dca603c

Please sign in to comment.