Skip to content

Commit

Permalink
Upgrade to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSurgisonGDS committed Oct 20, 2023
1 parent 9c13ca5 commit 0384c9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-acceptance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false # continue other tests if one test in matrix fails
matrix:
node-version: [18.x]
node-version: [20.x]
os: [macos-latest, windows-latest, ubuntu-latest]
type: [smoke, plugins, styles, dev, prod, errors]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false # continue other tests if one test in matrix fails
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]
os: [macos-latest, windows-latest, ubuntu-latest]

name: Test kit on Node v${{ matrix.node-version }} (${{ matrix.os }})
Expand Down
4 changes: 2 additions & 2 deletions bin/cli
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

if (process.argv.indexOf('--suppress-node-version-warning') === -1 || (process.argv[2] === 'migrate' && process.argv[3] === '--')) {
const majorNodeVersion = parseInt(process.version.split('.')[0].substring(1), 10)
const versionIsWithinRecommendation = majorNodeVersion === 18 || majorNodeVersion === 16
const versionIsWithinRecommendation = majorNodeVersion === 20 || majorNodeVersion === 18
if (!versionIsWithinRecommendation) {
const nodeVersionIsTooOldToUse = majorNodeVersion < 14
const updateOrDownload = majorNodeVersion < 18 ? 'update to' : 'download'
const updateOrDownload = majorNodeVersion < 20 ? 'update to' : 'download'
const printLn = nodeVersionIsTooOldToUse ? console.error.bind(console) : console.warn.bind(console)
const additionalText = nodeVersionIsTooOldToUse ? '' : ' Some features may not work with your version.'

Expand Down

0 comments on commit 0384c9e

Please sign in to comment.