Skip to content

Commit

Permalink
Ignore engine spec when testing with latest Node
Browse files Browse the repository at this point in the history
We are defining the version of Node we support with the `engines`
directive[1] in `package.json` - as we should be. However, when testing
against the latest version of Node, we need to override that. Turn off
`engine-strict`[2] via the command line, so that Node will install our
dependencies.

[1] https://docs.npmjs.com/cli/v10/configuring-npm/package-json?v=true#engines
[2] https://docs.npmjs.com/cli/v10/using-npm/config#engine-strict
  • Loading branch information
jasonaowen committed Dec 12, 2024
1 parent b048cee commit 75a322c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-current-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
check-latest: true

- name: Install dependencies
run: npm ci
run: npm ci --no-engine-strict

- name: Run build
run: npm run build
Expand Down

0 comments on commit 75a322c

Please sign in to comment.