diff --git a/.github/workflows/compiler_playground.yml b/.github/workflows/compiler_playground.yml index a19e87e25e..8afa21fcd0 100644 --- a/.github/workflows/compiler_playground.yml +++ b/.github/workflows/compiler_playground.yml @@ -28,14 +28,14 @@ jobs: name: Test playground runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: compiler/**/yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -51,7 +51,7 @@ jobs: run: echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT" - name: Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }} id: cache_playwright_browsers - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.cache/ms-playwright key: playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }} @@ -62,7 +62,7 @@ jobs: if: '!cancelled()' - name: Archive test results if: '!cancelled()' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: test-results path: compiler/apps/playground/test-results diff --git a/.github/workflows/compiler_prereleases.yml b/.github/workflows/compiler_prereleases.yml index 76cd3310b1..180d225dfd 100644 --- a/.github/workflows/compiler_prereleases.yml +++ b/.github/workflows/compiler_prereleases.yml @@ -43,14 +43,14 @@ jobs: name: Publish prelease (${{ inputs.release_channel }}) ${{ inputs.commit_sha }} @${{ inputs.dist_tag }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: compiler/yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | diff --git a/.github/workflows/compiler_typescript.yml b/.github/workflows/compiler_typescript.yml index 6a3b52e21a..baea7eed73 100644 --- a/.github/workflows/compiler_typescript.yml +++ b/.github/workflows/compiler_typescript.yml @@ -30,7 +30,7 @@ jobs: outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - id: set-matrix run: echo "matrix=$(find packages -mindepth 1 -maxdepth 1 -type d | sed 's!packages/!!g' | tr '\n' ',' | sed s/.$// | jq -Rsc '. / "," - [""]')" >> $GITHUB_OUTPUT @@ -39,14 +39,14 @@ jobs: name: Lint babel-plugin-react-compiler runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: compiler/yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -61,14 +61,14 @@ jobs: name: Jest babel-plugin-react-compiler runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: compiler/yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -87,14 +87,14 @@ jobs: matrix: workspace_name: ${{ fromJSON(needs.discover_yarn_workspaces.outputs.matrix) }} steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: compiler/yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | diff --git a/.github/workflows/devtools_regression_tests.yml b/.github/workflows/devtools_regression_tests.yml index 9fe0c55e0b..301a116ccc 100644 --- a/.github/workflows/devtools_regression_tests.yml +++ b/.github/workflows/devtools_regression_tests.yml @@ -24,14 +24,14 @@ jobs: # We use github.token to download the build artifact from a previous runtime_build_and_test.yml run actions: read steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -50,7 +50,7 @@ jobs: - name: Display structure of build run: ls -R build - name: Archive build - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: build path: build @@ -61,14 +61,14 @@ jobs: needs: download_build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -79,7 +79,7 @@ jobs: - run: yarn install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: name: build path: build @@ -89,20 +89,20 @@ jobs: - name: Display structure of build run: ls -R build - name: Archive devtools build - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: react-devtools path: build/devtools if-no-files-found: error # Simplifies getting the extension for local testing - name: Archive chrome extension - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: react-devtools-chrome-extension path: build/devtools/chrome-extension.zip if-no-files-found: error - name: Archive firefox extension - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: react-devtools-firefox-extension path: build/devtools/firefox-extension.zip @@ -123,14 +123,14 @@ jobs: - "18.0" - "18.2" # compiler polyfill steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -139,7 +139,7 @@ jobs: - run: yarn install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore all archived build artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 - name: Display structure of build run: ls -R build - run: ./scripts/ci/download_devtools_regression_build.js ${{ matrix.version }} --replaceBuild @@ -159,14 +159,14 @@ jobs: - "17.0" - "18.0" steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -175,7 +175,7 @@ jobs: - run: yarn install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore all archived build artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 - name: Display structure of build run: ls -R build - name: Check Playwright version @@ -183,7 +183,7 @@ jobs: run: echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT" - name: Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }} id: cache_playwright_browsers - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.cache/ms-playwright key: playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }} @@ -198,7 +198,7 @@ jobs: RELEASE_CHANNEL: experimental - name: Cleanup build regression folder run: rm -r ./build-regression - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: screenshots path: ./tmp/playwright-artifacts diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index c1cc8df2eb..a0f1ea07fd 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -36,7 +36,7 @@ jobs: name: Cache Runtime node_modules runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - name: Check cache hit @@ -47,7 +47,7 @@ jobs: **/node_modules key: runtime-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} lookup-only: true - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 if: steps.node_modules.outputs.cache-hit != 'true' with: node-version-file: '.nvmrc' @@ -75,7 +75,7 @@ jobs: name: Cache Runtime, Compiler node_modules runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - name: Check cache hit @@ -86,7 +86,7 @@ jobs: **/node_modules key: runtime-and-compiler-node_modules-v7-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }} lookup-only: true - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 if: steps.node_modules.outputs.cache-hit != 'true' with: node-version-file: '.nvmrc' @@ -121,10 +121,10 @@ jobs: outputs: matrix: ${{ steps.set-matrix.outputs.result }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/github-script@v7 + - uses: actions/github-script@v8 id: set-matrix with: script: | @@ -140,10 +140,10 @@ jobs: matrix: flow_inline_config_shortname: ${{ fromJSON(needs.discover_flow_inline_configs.outputs.matrix) }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -168,10 +168,10 @@ jobs: needs: [runtime_node_modules_cache] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -198,10 +198,10 @@ jobs: needs: [runtime_node_modules_cache] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -254,10 +254,10 @@ jobs: - 4/5 - 5/5 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -286,8 +286,8 @@ jobs: needs: [runtime_compiler_node_modules_cache] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -295,7 +295,7 @@ jobs: yarn.lock compiler/yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -323,17 +323,17 @@ jobs: worker_id: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24] release_channel: [stable, experimental] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: | yarn.lock compiler/yarn.lock - - uses: actions/setup-java@v4 + - uses: actions/setup-java@v5 with: distribution: temurin java-version: 11.0.22 @@ -361,7 +361,7 @@ jobs: - name: Display structure of build run: ls -R build - name: Archive build - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: _build_${{ matrix.worker_id }}_${{ matrix.release_channel }} path: build @@ -416,10 +416,10 @@ jobs: - 10/10 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -441,7 +441,7 @@ jobs: - run: yarn --cwd compiler install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -459,10 +459,10 @@ jobs: attestations: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -480,7 +480,7 @@ jobs: - run: yarn install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -498,7 +498,7 @@ jobs: - run: cp ./build.tgz ./build2.tgz - name: Archive build artifacts id: upload_artifacts_combined - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: artifacts_combined path: | @@ -522,10 +522,10 @@ jobs: needs: [build_and_lint, runtime_node_modules_cache] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -543,7 +543,7 @@ jobs: - run: yarn install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -560,10 +560,10 @@ jobs: needs: [build_and_lint, runtime_node_modules_cache] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -581,7 +581,7 @@ jobs: - run: yarn install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -595,16 +595,16 @@ jobs: needs: build_and_lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 # note: this does not reuse centralized cache since it has unique cache key + uses: actions/cache@v5 # note: this does not reuse centralized cache since it has unique cache key id: node_modules with: path: | @@ -615,7 +615,7 @@ jobs: - run: yarn --cwd fixtures/dom install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -636,10 +636,10 @@ jobs: needs: build_and_lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -648,7 +648,7 @@ jobs: # That means dependencies of the built packages are not installed. # We need to install dependencies of the workroot to fulfill all dependency constraints - name: Restore cached node_modules - uses: actions/cache@v4 # note: this does not reuse centralized cache since it has unique cache key + uses: actions/cache@v5 # note: this does not reuse centralized cache since it has unique cache key id: node_modules with: path: | @@ -665,7 +665,7 @@ jobs: run: echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT" - name: Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }} id: cache_playwright_browsers - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.cache/ms-playwright key: playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }} @@ -674,7 +674,7 @@ jobs: working-directory: fixtures/flight run: npx playwright install --with-deps chromium - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -688,13 +688,13 @@ jobs: # Otherwise the webserver is a blackbox DEBUG: pw:webserver - name: Archive Flight fixture artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: flight-playwright-report path: fixtures/flight/playwright-report if-no-files-found: warn - name: Archive Flight fixture artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: flight-test-results path: fixtures/flight/test-results @@ -710,10 +710,10 @@ jobs: matrix: browser: [chrome, firefox, edge] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -731,7 +731,7 @@ jobs: - run: yarn install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -743,13 +743,13 @@ jobs: run: ls -R build # Simplifies getting the extension for local testing - name: Archive ${{ matrix.browser }} extension - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: react-devtools-${{ matrix.browser }}-extension path: build/devtools/${{ matrix.browser }}-extension.zip if-no-files-found: error - name: Archive ${{ matrix.browser }} metadata - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: react-devtools-${{ matrix.browser }}-metadata path: build/devtools/webpack-stats.*.json @@ -770,10 +770,10 @@ jobs: needs: [build_and_lint, runtime_node_modules_cache] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -791,7 +791,7 @@ jobs: - run: yarn install --frozen-lockfile if: steps.node_modules.outputs.cache-hit != 'true' - name: Restore archived build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -801,7 +801,7 @@ jobs: run: echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT" - name: Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }} id: cache_playwright_browsers - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.cache/ms-playwright key: playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }} @@ -812,7 +812,7 @@ jobs: env: RELEASE_CHANNEL: experimental - name: Archive Playwright report - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: devtools-playwright-artifacts path: tmp/playwright-artifacts @@ -828,16 +828,16 @@ jobs: actions: read runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 # note: this does not reuse centralized cache since it has unique cache key + uses: actions/cache@v5 # note: this does not reuse centralized cache since it has unique cache key id: node_modules with: path: | @@ -868,7 +868,7 @@ jobs: - name: Ensure clean build directory run: rm -rf build - name: Restore archived build for PR - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: _build_* path: build @@ -882,7 +882,7 @@ jobs: - run: echo ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} >> build/COMMIT_SHA - run: node ./scripts/tasks/danger - name: Archive sizebot results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: sizebot-message path: sizebot-message.md diff --git a/.github/workflows/runtime_commit_artifacts.yml b/.github/workflows/runtime_commit_artifacts.yml index 1b98673cd4..e842e6c9a6 100644 --- a/.github/workflows/runtime_commit_artifacts.yml +++ b/.github/workflows/runtime_commit_artifacts.yml @@ -36,9 +36,9 @@ jobs: # We use github.token to download the build artifact from a previous runtime_build_and_test.yml run actions: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -56,7 +56,7 @@ jobs: - name: Display structure of build run: ls -R build - name: Archive build - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: build path: build/ @@ -76,7 +76,7 @@ jobs: current_version_modern: ${{ steps.get_current_version.outputs.current_version_modern }} current_version_rn: ${{ steps.get_current_version.outputs.current_version_rn }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: builds/facebook-www - name: "Get last version string for www" @@ -89,7 +89,7 @@ jobs: echo "Last modern version is $VERSION_MODERN" echo "last_version_classic=$VERSION_CLASSIC" >> "$GITHUB_OUTPUT" echo "last_version_modern=$VERSION_MODERN" >> "$GITHUB_OUTPUT" - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: builds/facebook-fbsource - name: "Get last version string for rn" @@ -99,14 +99,14 @@ jobs: VERSION_NATIVE_FB=$( [ -f ./compiled-rn/VERSION_NATIVE_FB ] && cat ./compiled-rn/VERSION_NATIVE_FB || echo '' ) echo "Last rn version is $VERSION_NATIVE_FB" echo "last_version_rn=$VERSION_NATIVE_FB" >> "$GITHUB_OUTPUT" - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: "Check branches" id: check_branches run: | echo "www_branch_count=$(git ls-remote --heads origin "refs/heads/meta-www" | wc -l)" >> "$GITHUB_OUTPUT" echo "fbsource_branch_count=$(git ls-remote --heads origin "refs/heads/meta-fbsource" | wc -l)" >> "$GITHUB_OUTPUT" - name: Restore downloaded build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: name: build path: build @@ -197,12 +197,12 @@ jobs: echo "current_version_classic=$VERSION_CLASSIC" >> "$GITHUB_OUTPUT" echo "current_version_modern=$VERSION_MODERN" >> "$GITHUB_OUTPUT" echo "current_version_rn=$VERSION_NATIVE_FB" >> "$GITHUB_OUTPUT" - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: compiled path: compiled/ if-no-files-found: error - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: compiled-rn path: compiled-rn/ @@ -216,12 +216,12 @@ jobs: # Used to push a commit to builds/facebook-www contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: builds/facebook-www - name: Ensure clean directory run: rm -rf compiled - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v7 with: name: compiled path: compiled/ @@ -307,12 +307,12 @@ jobs: if: inputs.force == true || (github.ref == 'refs/heads/main' && needs.process_artifacts.outputs.fbsource_branch_count == '0') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: builds/facebook-fbsource - name: Ensure clean directory run: rm -rf compiled-rn - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v7 with: name: compiled-rn path: compiled-rn/ @@ -362,7 +362,7 @@ jobs: git add . - name: Signing files if: inputs.force == true || steps.check_should_commit.outputs.should_commit == 'true' - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | // TODO: Move this to a script file. diff --git a/.github/workflows/runtime_eslint_plugin_e2e.yml b/.github/workflows/runtime_eslint_plugin_e2e.yml index 92921646c1..3fb6249721 100644 --- a/.github/workflows/runtime_eslint_plugin_e2e.yml +++ b/.github/workflows/runtime_eslint_plugin_e2e.yml @@ -30,10 +30,10 @@ jobs: - "8" - "9" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha || github.sha }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn @@ -41,7 +41,7 @@ jobs: yarn.lock compiler/yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | diff --git a/.github/workflows/runtime_fuzz_tests.yml b/.github/workflows/runtime_fuzz_tests.yml index a88ce523a6..557cfc13ff 100644 --- a/.github/workflows/runtime_fuzz_tests.yml +++ b/.github/workflows/runtime_fuzz_tests.yml @@ -17,8 +17,8 @@ jobs: test_fuzz: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.0 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: 'yarn' diff --git a/.github/workflows/runtime_prereleases.yml b/.github/workflows/runtime_prereleases.yml index 6559b14499..2add548d98 100644 --- a/.github/workflows/runtime_prereleases.yml +++ b/.github/workflows/runtime_prereleases.yml @@ -53,14 +53,14 @@ jobs: # We use github.token to download the build artifact from a previous runtime_build_and_test.yml run actions: read steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | diff --git a/.github/workflows/runtime_releases_from_npm_manual.yml b/.github/workflows/runtime_releases_from_npm_manual.yml index f164e9f080..6af9448d35 100644 --- a/.github/workflows/runtime_releases_from_npm_manual.yml +++ b/.github/workflows/runtime_releases_from_npm_manual.yml @@ -62,14 +62,14 @@ jobs: name: Publish releases runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -121,7 +121,7 @@ jobs: --skipPackages=${{ inputs.skip_packages }} ${{ (inputs.dry && '') || '\'}} ${{ inputs.dry && '--dry' || '' }} - name: Archive released package for debugging - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: build path: | diff --git a/.github/workflows/shared_check_maintainer.yml b/.github/workflows/shared_check_maintainer.yml index f6eb9b9a6d..b51a800b7d 100644 --- a/.github/workflows/shared_check_maintainer.yml +++ b/.github/workflows/shared_check_maintainer.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Check if actor is maintainer id: check_if_actor_is_maintainer - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | const fs = require('fs'); diff --git a/.github/workflows/shared_close_direct_sync_branch_prs.yml b/.github/workflows/shared_close_direct_sync_branch_prs.yml index caa4da880b..49e4a66e38 100644 --- a/.github/workflows/shared_close_direct_sync_branch_prs.yml +++ b/.github/workflows/shared_close_direct_sync_branch_prs.yml @@ -21,7 +21,7 @@ jobs: contents: write steps: - name: Close PR - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | const owner = context.repo.owner; diff --git a/.github/workflows/shared_label_core_team_prs.yml b/.github/workflows/shared_label_core_team_prs.yml index cc10e87dcc..f0b0f7c132 100644 --- a/.github/workflows/shared_label_core_team_prs.yml +++ b/.github/workflows/shared_label_core_team_prs.yml @@ -44,7 +44,7 @@ jobs: pull-requests: write steps: - name: Label PR as React Core Team - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | github.rest.issues.addLabels({ diff --git a/.github/workflows/shared_lint.yml b/.github/workflows/shared_lint.yml index 3c359cff22..384cb6efaf 100644 --- a/.github/workflows/shared_lint.yml +++ b/.github/workflows/shared_lint.yml @@ -21,14 +21,14 @@ jobs: name: Run prettier runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -44,14 +44,14 @@ jobs: name: Run eslint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -67,14 +67,14 @@ jobs: name: Check license runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | @@ -90,14 +90,14 @@ jobs: name: Test print warnings runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: yarn cache-dependency-path: yarn.lock - name: Restore cached node_modules - uses: actions/cache@v4 + uses: actions/cache@v5 id: node_modules with: path: | diff --git a/.github/workflows/shared_stale.yml b/.github/workflows/shared_stale.yml index c24895edc5..debd647f6c 100644 --- a/.github/workflows/shared_stale.yml +++ b/.github/workflows/shared_stale.yml @@ -18,7 +18,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v9 + - uses: actions/stale@v10 with: # --- Issues & PRs --- # Number of days of inactivity before an issue or PR becomes stale