Skip to content

Commit 41769a3

Browse files
authored
Upgrade Nodejs to 22 (#2619)
1 parent 0c8ead8 commit 41769a3

File tree

12 files changed

+23
-17
lines changed

12 files changed

+23
-17
lines changed

.changeset/silver-trees-occur.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@hashicorp/design-system-components": patch
3+
"@hashicorp/design-system-codemods": patch
4+
---
5+
6+
Shifted our supported version of Node.js from `16* || >= 18` to `>=18`

.github/workflows/ci-components.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: CI - Components
2-
2+
33
on:
44
push:
55
branches:
66
- main
77
pull_request: {}
88

99
env:
10-
NODE_VERSION: '20.x'
10+
NODE_VERSION: '22.x'
1111

1212
concurrency:
1313
group: ci-components-${{ github.head_ref || github.ref }}
1414
cancel-in-progress: true
1515

1616
jobs:
1717
conditional-skip:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-latest
1919
name: Get files changed and conditionally skip CI
2020
outputs:
2121
trigger-ci: ${{ steps.read-files.outputs.trigger-ci }}
2222
steps:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
with:
25-
fetch-depth: 0
25+
fetch-depth: 0
2626
- name: Get changed files
2727
id: read-files
2828
run: ./.github/scripts/filter_changed_files.sh "packages/components" "packages/flight-icons/catalog.json" "showcase" ".github/workflows/ci-components.yml" "packages/tokens"

.github/workflows/ci-compress-images.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- cron: '00 23 * * 0'
66

77
env:
8-
NODE_VERSION: '20.x'
8+
NODE_VERSION: '22.x'
99

1010
jobs:
1111
build:

.github/workflows/ci-website.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ on:
77
pull_request: {}
88

99
env:
10-
NODE_VERSION: '20.x'
10+
NODE_VERSION: '22.x'
1111

1212
concurrency:
1313
group: ci-website-${{ github.head_ref || github.ref }}
1414
cancel-in-progress: true
1515

1616
jobs:
1717
conditional-skip:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-latest
1919
name: Get files changed and conditionally skip CI
2020
outputs:
2121
trigger-ci: ${{ steps.read-files.outputs.trigger-ci }}
2222
steps:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
with:
25-
fetch-depth: 0
25+
fetch-depth: 0
2626
- name: Get changed files
2727
id: read-files
2828
run: ./.github/scripts/filter_changed_files.sh "website" "packages/flight-icons/catalog.json" ".github/workflows/ci-website.yml"
29-
29+
3030
lint:
3131
name: 'Lint'
3232
runs-on: ubuntu-latest

.github/workflows/open-pull-request-for-icon-update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
env:
7-
NODE_VERSION: '20.x'
7+
NODE_VERSION: '22.x'
88

99
jobs:
1010
sync_iconset:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
env:
9-
NODE_VERSION: '20.x'
9+
NODE_VERSION: '22.x'
1010

1111
jobs:
1212
release:

packages/codemods/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"prettier": "^3.3.2"
3939
},
4040
"engines": {
41-
"node": "14.* || 16.* || >= 18"
41+
"node": ">= 18"
4242
},
4343
"jest": {
4444
"testEnvironment": "node"

packages/components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,6 @@
330330
"dist"
331331
],
332332
"engines": {
333-
"node": "16.* || >= 18"
333+
"node": ">= 18"
334334
}
335335
}

packages/ember-flight-icons/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Goals:
1818

1919
* Ember.js v3.28 or above
2020
* Ember CLI v3.28 or above
21-
* Node.js v16 or above
21+
* Node.js v18 or above
2222

2323
## Installation and Usage
2424

packages/ember-flight-icons/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@
110110
"dist"
111111
],
112112
"engines": {
113-
"node": "16.* || >= 18"
113+
"node": ">= 18"
114114
}
115115
}

showcase/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"webpack": "^5.94.0"
113113
},
114114
"engines": {
115-
"node": "16.* || >= 18"
115+
"node": ">= 18"
116116
},
117117
"ember": {
118118
"edition": "octane"

website/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"yaml-front-matter": "^4.1.1"
136136
},
137137
"engines": {
138-
"node": "16.* || >= 18"
138+
"node": ">= 18"
139139
},
140140
"ember": {
141141
"edition": "octane"

0 commit comments

Comments
 (0)