Skip to content

Commit

Permalink
chore(project): upgrade to node 20 (#3809)
Browse files Browse the repository at this point in the history
* chore(project): update to yarn 4

* chore: migrate to yarn 4 settings/commands

* chore(project): upgrade to node 20

* chore: update project engines

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tay1orjones and kodiakhq[bot] authored Nov 17, 2023
1 parent e273a86 commit d159409
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/[email protected]
with:
node-version: '18.x'
node-version: '20.x'
- name: Install dependencies
run: yarn install --immutable
- name: Check formatting of project files
Expand All @@ -24,10 +24,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/[email protected]
with:
node-version: '18.x'
node-version: '20.x'
- name: Install dependencies
run: yarn install --immutable
- name: Lint JavaScript files
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
- name: Install packages
run: yarn install --immutable --network-timeout 300000
- name: Gatsby Cache Folder
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/update-carbon-gatsby-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
with:
repository: carbon-design-system/carbon-website
ref: main
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Update dependencies
run: |
Expand All @@ -41,7 +41,8 @@ jobs:
uses: peter-evans/create-pull-request@v5
with:
branch: 'release/update-carbon-deps'
commit-message: 'chore(release): update carbon and gatsby-theme-carbon deps'
commit-message:
'chore(release): update carbon and gatsby-theme-carbon deps'
delete-branch: true
title: 'chore(release): update carbon and gatsby-theme-carbon deps'
token: ${{ steps.generate_token.outputs.token }}
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"update-browserslist": "npx browserslist-ga"
},
"engines": {
"node": "^18"
"node": ">=18.x"
},
"browserslist": [
"last 1 edge version",
Expand Down

1 comment on commit d159409

@vercel
Copy link

@vercel vercel bot commented on d159409 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.