Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(project): upgrade to node 20 #3809

Merged
merged 7 commits into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -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
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 4 additions & 3 deletions .github/workflows/update-carbon-gatsby-deps.yml
Original file line number Diff line number Diff line change
@@ -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: |
@@ -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 }}
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
@@ -23,7 +23,7 @@
"update-browserslist": "npx browserslist-ga"
},
"engines": {
"node": "^18"
"node": ">=18.x"
},
"browserslist": [
"last 1 edge version",