Skip to content

Commit 0b99e15

Browse files
committed
Upgrade GitHub Actions for Node 24 compatibility
1 parent 88ee1f5 commit 0b99e15

15 files changed

+141
-141
lines changed

.github/workflows/compiler_playground.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
name: Test playground
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v4
32-
- uses: actions/setup-node@v4
31+
- uses: actions/checkout@v6
32+
- uses: actions/setup-node@v6
3333
with:
3434
node-version-file: '.nvmrc'
3535
cache: yarn
3636
cache-dependency-path: compiler/**/yarn.lock
3737
- name: Restore cached node_modules
38-
uses: actions/cache@v4
38+
uses: actions/cache@v5
3939
id: node_modules
4040
with:
4141
path: |
@@ -51,7 +51,7 @@ jobs:
5151
run: echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT"
5252
- name: Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }}
5353
id: cache_playwright_browsers
54-
uses: actions/cache@v4
54+
uses: actions/cache@v5
5555
with:
5656
path: ~/.cache/ms-playwright
5757
key: playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }}
@@ -62,7 +62,7 @@ jobs:
6262
if: '!cancelled()'
6363
- name: Archive test results
6464
if: '!cancelled()'
65-
uses: actions/upload-artifact@v4
65+
uses: actions/upload-artifact@v6
6666
with:
6767
name: test-results
6868
path: compiler/apps/playground/test-results

.github/workflows/compiler_prereleases.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ jobs:
4343
name: Publish prelease (${{ inputs.release_channel }}) ${{ inputs.commit_sha }} @${{ inputs.dist_tag }}
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v4
47-
- uses: actions/setup-node@v4
46+
- uses: actions/checkout@v6
47+
- uses: actions/setup-node@v6
4848
with:
4949
node-version-file: '.nvmrc'
5050
cache: yarn
5151
cache-dependency-path: compiler/yarn.lock
5252
- name: Restore cached node_modules
53-
uses: actions/cache@v4
53+
uses: actions/cache@v5
5454
id: node_modules
5555
with:
5656
path: |

.github/workflows/compiler_typescript.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
outputs:
3131
matrix: ${{ steps.set-matrix.outputs.matrix }}
3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v6
3434
- id: set-matrix
3535
run: echo "matrix=$(find packages -mindepth 1 -maxdepth 1 -type d | sed 's!packages/!!g' | tr '\n' ',' | sed s/.$// | jq -Rsc '. / "," - [""]')" >> $GITHUB_OUTPUT
3636

@@ -39,14 +39,14 @@ jobs:
3939
name: Lint babel-plugin-react-compiler
4040
runs-on: ubuntu-latest
4141
steps:
42-
- uses: actions/checkout@v4
43-
- uses: actions/setup-node@v4
42+
- uses: actions/checkout@v6
43+
- uses: actions/setup-node@v6
4444
with:
4545
node-version-file: '.nvmrc'
4646
cache: yarn
4747
cache-dependency-path: compiler/yarn.lock
4848
- name: Restore cached node_modules
49-
uses: actions/cache@v4
49+
uses: actions/cache@v5
5050
id: node_modules
5151
with:
5252
path: |
@@ -61,14 +61,14 @@ jobs:
6161
name: Jest babel-plugin-react-compiler
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/checkout@v4
65-
- uses: actions/setup-node@v4
64+
- uses: actions/checkout@v6
65+
- uses: actions/setup-node@v6
6666
with:
6767
node-version-file: '.nvmrc'
6868
cache: yarn
6969
cache-dependency-path: compiler/yarn.lock
7070
- name: Restore cached node_modules
71-
uses: actions/cache@v4
71+
uses: actions/cache@v5
7272
id: node_modules
7373
with:
7474
path: |
@@ -87,14 +87,14 @@ jobs:
8787
matrix:
8888
workspace_name: ${{ fromJSON(needs.discover_yarn_workspaces.outputs.matrix) }}
8989
steps:
90-
- uses: actions/checkout@v4
91-
- uses: actions/setup-node@v4
90+
- uses: actions/checkout@v6
91+
- uses: actions/setup-node@v6
9292
with:
9393
node-version-file: '.nvmrc'
9494
cache: yarn
9595
cache-dependency-path: compiler/yarn.lock
9696
- name: Restore cached node_modules
97-
uses: actions/cache@v4
97+
uses: actions/cache@v5
9898
id: node_modules
9999
with:
100100
path: |

.github/workflows/devtools_regression_tests.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
# We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
2525
actions: read
2626
steps:
27-
- uses: actions/checkout@v4
28-
- uses: actions/setup-node@v4
27+
- uses: actions/checkout@v6
28+
- uses: actions/setup-node@v6
2929
with:
3030
node-version-file: '.nvmrc'
3131
cache: yarn
3232
cache-dependency-path: yarn.lock
3333
- name: Restore cached node_modules
34-
uses: actions/cache@v4
34+
uses: actions/cache@v5
3535
id: node_modules
3636
with:
3737
path: |
@@ -50,7 +50,7 @@ jobs:
5050
- name: Display structure of build
5151
run: ls -R build
5252
- name: Archive build
53-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@v6
5454
with:
5555
name: build
5656
path: build
@@ -61,14 +61,14 @@ jobs:
6161
needs: download_build
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/checkout@v4
65-
- uses: actions/setup-node@v4
64+
- uses: actions/checkout@v6
65+
- uses: actions/setup-node@v6
6666
with:
6767
node-version-file: '.nvmrc'
6868
cache: yarn
6969
cache-dependency-path: yarn.lock
7070
- name: Restore cached node_modules
71-
uses: actions/cache@v4
71+
uses: actions/cache@v5
7272
id: node_modules
7373
with:
7474
path: |
@@ -79,7 +79,7 @@ jobs:
7979
- run: yarn install --frozen-lockfile
8080
if: steps.node_modules.outputs.cache-hit != 'true'
8181
- name: Restore archived build
82-
uses: actions/download-artifact@v4
82+
uses: actions/download-artifact@v7
8383
with:
8484
name: build
8585
path: build
@@ -89,20 +89,20 @@ jobs:
8989
- name: Display structure of build
9090
run: ls -R build
9191
- name: Archive devtools build
92-
uses: actions/upload-artifact@v4
92+
uses: actions/upload-artifact@v6
9393
with:
9494
name: react-devtools
9595
path: build/devtools
9696
if-no-files-found: error
9797
# Simplifies getting the extension for local testing
9898
- name: Archive chrome extension
99-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@v6
100100
with:
101101
name: react-devtools-chrome-extension
102102
path: build/devtools/chrome-extension.zip
103103
if-no-files-found: error
104104
- name: Archive firefox extension
105-
uses: actions/upload-artifact@v4
105+
uses: actions/upload-artifact@v6
106106
with:
107107
name: react-devtools-firefox-extension
108108
path: build/devtools/firefox-extension.zip
@@ -123,14 +123,14 @@ jobs:
123123
- "18.0"
124124
- "18.2" # compiler polyfill
125125
steps:
126-
- uses: actions/checkout@v4
127-
- uses: actions/setup-node@v4
126+
- uses: actions/checkout@v6
127+
- uses: actions/setup-node@v6
128128
with:
129129
node-version-file: '.nvmrc'
130130
cache: yarn
131131
cache-dependency-path: yarn.lock
132132
- name: Restore cached node_modules
133-
uses: actions/cache@v4
133+
uses: actions/cache@v5
134134
id: node_modules
135135
with:
136136
path: |
@@ -139,7 +139,7 @@ jobs:
139139
- run: yarn install --frozen-lockfile
140140
if: steps.node_modules.outputs.cache-hit != 'true'
141141
- name: Restore all archived build artifacts
142-
uses: actions/download-artifact@v4
142+
uses: actions/download-artifact@v7
143143
- name: Display structure of build
144144
run: ls -R build
145145
- run: ./scripts/ci/download_devtools_regression_build.js ${{ matrix.version }} --replaceBuild
@@ -159,14 +159,14 @@ jobs:
159159
- "17.0"
160160
- "18.0"
161161
steps:
162-
- uses: actions/checkout@v4
163-
- uses: actions/setup-node@v4
162+
- uses: actions/checkout@v6
163+
- uses: actions/setup-node@v6
164164
with:
165165
node-version-file: '.nvmrc'
166166
cache: yarn
167167
cache-dependency-path: yarn.lock
168168
- name: Restore cached node_modules
169-
uses: actions/cache@v4
169+
uses: actions/cache@v5
170170
id: node_modules
171171
with:
172172
path: |
@@ -175,15 +175,15 @@ jobs:
175175
- run: yarn install --frozen-lockfile
176176
if: steps.node_modules.outputs.cache-hit != 'true'
177177
- name: Restore all archived build artifacts
178-
uses: actions/download-artifact@v4
178+
uses: actions/download-artifact@v7
179179
- name: Display structure of build
180180
run: ls -R build
181181
- name: Check Playwright version
182182
id: playwright_version
183183
run: echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT"
184184
- name: Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }}
185185
id: cache_playwright_browsers
186-
uses: actions/cache@v4
186+
uses: actions/cache@v5
187187
with:
188188
path: ~/.cache/ms-playwright
189189
key: playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }}
@@ -198,7 +198,7 @@ jobs:
198198
RELEASE_CHANNEL: experimental
199199
- name: Cleanup build regression folder
200200
run: rm -r ./build-regression
201-
- uses: actions/upload-artifact@v4
201+
- uses: actions/upload-artifact@v6
202202
with:
203203
name: screenshots
204204
path: ./tmp/playwright-artifacts

0 commit comments

Comments
 (0)