Skip to content

Commit 8adb94b

Browse files
authored
feat(TU-36984): Upgrade CI to node 24 (#734)
* feat(TU-36984): Bumping minimum node version to 18 BREAKING CHANGES: Minimum required version is now node 18 * ci(TU-36984): Updating CI to run in node 24
1 parent 27ad93b commit 8adb94b

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/deploy-aws.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Node.js
2323
uses: actions/setup-node@v6
2424
with:
25-
node-version: 22
25+
node-version: 24
2626

2727
- name: Get yarn cache
2828
uses: actions/cache@v5
@@ -31,7 +31,7 @@ jobs:
3131
path: |
3232
**/node_modules
3333
~/.cache
34-
key: ${{ runner.os }}-node-22-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
34+
key: ${{ runner.os }}-node-24-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
3535

3636
- name: Install Node.js dependencies
3737
if: steps.yarn-cache.outputs.cache-hit != 'true'

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
node_version:
13-
- 22 # end of life 2027-04-30 # used in SonarCloud scan
13+
- 24 # end of life 2028-04-30 # used in SonarCloud scan
1414
name: build-lint-test - node ${{ matrix.node_version }}
1515
steps:
1616
- name: Check out Git repository
@@ -61,7 +61,7 @@ jobs:
6161
- name: Set up Node.js
6262
uses: actions/setup-node@v6
6363
with:
64-
node-version: 22
64+
node-version: 24
6565

6666
- name: Get yarn cache
6767
uses: actions/cache@v5
@@ -70,7 +70,7 @@ jobs:
7070
path: |
7171
**/node_modules
7272
~/.cache
73-
key: ${{ runner.os }}-repo-${{ github.event.pull_request.head.repo.full_name }}-node-22-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
73+
key: ${{ runner.os }}-repo-${{ github.event.pull_request.head.repo.full_name }}-node-24-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
7474

7575
- name: Install Node.js dependencies
7676
if: steps.yarn-cache.outputs.cache-hit != 'true'
@@ -93,7 +93,7 @@ jobs:
9393
- name: Set up Node.js
9494
uses: actions/setup-node@v6
9595
with:
96-
node-version: 22
96+
node-version: 24
9797

9898
- name: Get yarn cache
9999
uses: actions/cache@v5
@@ -102,7 +102,7 @@ jobs:
102102
path: |
103103
**/node_modules
104104
~/.cache
105-
key: ${{ runner.os }}-repo-${{ github.event.pull_request.head.repo.full_name }}-node-22-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
105+
key: ${{ runner.os }}-repo-${{ github.event.pull_request.head.repo.full_name }}-node-24-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
106106

107107
- name: Install Node.js dependencies
108108
if: steps.yarn-cache.outputs.cache-hit != 'true'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Node.js
2525
uses: actions/setup-node@v6
2626
with:
27-
node-version: 22
27+
node-version: 24
2828

2929
- name: Get yarn cache
3030
uses: actions/cache@v5
@@ -33,7 +33,7 @@ jobs:
3333
path: |
3434
**/node_modules
3535
~/.cache
36-
key: ${{ runner.os }}-node-22-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
36+
key: ${{ runner.os }}-node-24-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
3737

3838
- name: Install Node.js dependencies
3939
if: steps.yarn-cache.outputs.cache-hit != 'true'

.github/workflows/visual.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Node.js
1919
uses: actions/setup-node@v6
2020
with:
21-
node-version: 22
21+
node-version: 24
2222

2323
- name: Get yarn cache
2424
uses: actions/cache@v5
@@ -27,7 +27,7 @@ jobs:
2727
path: |
2828
**/node_modules
2929
~/.cache
30-
key: ${{ runner.os }}-repo-${{ github.event.pull_request.head.repo.full_name }}-node-22-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
30+
key: ${{ runner.os }}-repo-${{ github.event.pull_request.head.repo.full_name }}-node-24-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
3131

3232
- name: Install Node.js dependencies
3333
if: steps.yarn-cache.outputs.cache-hit != 'true'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"private": true,
55
"engines": {
6-
"node": ">=12"
6+
"node": ">=18"
77
},
88
"scripts": {
99
"postinstall": "yarn lerna bootstrap",

packages/embed-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Typeform",
77
"license": "MIT",
88
"engines": {
9-
"node": ">=10"
9+
"node": ">=18"
1010
},
1111
"scripts": {
1212
"clean": "rm -rf ./build",

packages/embed/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"popover"
2323
],
2424
"engines": {
25-
"node": ">=10"
25+
"node": ">=18"
2626
},
2727
"scripts": {
2828
"clean": "rm -rf ./build ./build-aws ./types",

0 commit comments

Comments
 (0)