From 8ce9175e0d022538aea0272d3f76d737e3935a2d Mon Sep 17 00:00:00 2001 From: tiziodcaio Date: Thu, 5 Sep 2024 17:35:30 +0200 Subject: [PATCH] Fix corepack enable actions/setup-node#1027 --- .github/workflows/compiler_playground.yml | 2 +- .github/workflows/compiler_prereleases.yml | 2 +- .github/workflows/compiler_typescript.yml | 6 ++-- .../workflows/devtools_regression_tests.yml | 8 ++--- .github/workflows/runtime_build_and_test.yml | 30 +++++++++---------- .../workflows/runtime_commit_artifacts.yml | 2 +- .github/workflows/runtime_fuzz_tests.yml | 2 +- .github/workflows/runtime_prereleases.yml | 2 +- .github/workflows/shared_lint.yml | 8 ++--- 9 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/compiler_playground.yml b/.github/workflows/compiler_playground.yml index 0ac829c9cf70d..cc9bd53bb0470 100644 --- a/.github/workflows/compiler_playground.yml +++ b/.github/workflows/compiler_playground.yml @@ -23,6 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -34,7 +35,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }} - - run: corepack enable - run: yarn - run: npx playwright install --with-deps chromium - run: yarn workspace playground test diff --git a/.github/workflows/compiler_prereleases.yml b/.github/workflows/compiler_prereleases.yml index 336588b72bef6..514acfeda66df 100644 --- a/.github/workflows/compiler_prereleases.yml +++ b/.github/workflows/compiler_prereleases.yml @@ -34,6 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -45,7 +46,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }} - - run: corepack enable - run: yarn - name: Publish packages to npm run: | diff --git a/.github/workflows/compiler_typescript.yml b/.github/workflows/compiler_typescript.yml index bf81ae1dc77d6..f78534bd72b67 100644 --- a/.github/workflows/compiler_typescript.yml +++ b/.github/workflows/compiler_typescript.yml @@ -34,6 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -44,7 +45,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn workspace babel-plugin-react-compiler lint @@ -54,6 +54,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -65,7 +66,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn workspace babel-plugin-react-compiler jest @@ -79,6 +79,7 @@ jobs: workspace_name: ${{ fromJSON(needs.discover_yarn_workspaces.outputs.matrix) }} steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -90,6 +91,5 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn workspace ${{ matrix.workspace_name }} test diff --git a/.github/workflows/devtools_regression_tests.yml b/.github/workflows/devtools_regression_tests.yml index 1e325ebb12c05..18e9b2ea20eba 100644 --- a/.github/workflows/devtools_regression_tests.yml +++ b/.github/workflows/devtools_regression_tests.yml @@ -20,6 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -31,7 +32,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }} - - run: corepack enable - run: yarn working-directory: scripts/release - name: Download react-devtools artifacts for base revision @@ -52,6 +52,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -63,7 +64,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build uses: actions/download-artifact@v4 @@ -107,6 +107,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -118,7 +119,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore all archived build artifacts uses: actions/download-artifact@v4 @@ -142,6 +142,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -153,7 +154,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore all archived build artifacts uses: actions/download-artifact@v4 diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index 1f39b6e52f985..b6e1db6efac7b 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -38,6 +38,7 @@ jobs: flow_inline_config_shortname: ${{ fromJSON(needs.discover_flow_inline_configs.outputs.matrix) }} steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -49,7 +50,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - run: node ./scripts/tasks/flow-ci ${{ matrix.flow_inline_config_shortname }} @@ -59,6 +59,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -70,7 +71,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - run: | yarn generate-inline-fizz-runtime @@ -82,6 +82,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -93,7 +94,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn flags @@ -132,6 +132,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -143,7 +144,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn test ${{ matrix.params }} --ci --shard=${{ matrix.shard }} @@ -158,6 +158,7 @@ jobs: release_channel: [stable, experimental] steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -173,7 +174,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn build --index=${{ matrix.worker_id }} --total=20 --r=${{ matrix.release_channel }} --ci env: @@ -233,6 +233,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -244,7 +245,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build uses: actions/download-artifact@v4 @@ -262,6 +262,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -273,7 +274,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build uses: actions/download-artifact@v4 @@ -306,6 +306,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -317,7 +318,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build uses: actions/download-artifact@v4 @@ -338,6 +338,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -349,7 +350,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build uses: actions/download-artifact@v4 @@ -367,6 +367,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -378,7 +379,6 @@ jobs: with: path: "**/node_modules" key: v2-yarn_cache_fixtures_dom-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn working-directory: fixtures/dom @@ -405,6 +405,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -419,7 +420,6 @@ jobs: with: path: "**/node_modules" key: v2-yarn_cache_fixtures_flight-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build uses: actions/download-artifact@v4 @@ -465,6 +465,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -476,7 +477,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build uses: actions/download-artifact@v4 @@ -512,6 +512,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -523,7 +524,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build uses: actions/download-artifact@v4 @@ -545,6 +545,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -556,7 +557,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn working-directory: scripts/release @@ -585,6 +585,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -596,7 +597,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - run: corepack enable - run: yarn - name: Restore archived build for PR uses: actions/download-artifact@v4 diff --git a/.github/workflows/runtime_commit_artifacts.yml b/.github/workflows/runtime_commit_artifacts.yml index 4267af9e06f7c..4cbaaaf852847 100644 --- a/.github/workflows/runtime_commit_artifacts.yml +++ b/.github/workflows/runtime_commit_artifacts.yml @@ -59,6 +59,7 @@ jobs: 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" + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -70,7 +71,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }} - - run: corepack enable - run: yarn name: yarn install (react) - run: yarn diff --git a/.github/workflows/runtime_fuzz_tests.yml b/.github/workflows/runtime_fuzz_tests.yml index b5bc7b902cbfc..23d158f67feb5 100644 --- a/.github/workflows/runtime_fuzz_tests.yml +++ b/.github/workflows/runtime_fuzz_tests.yml @@ -16,11 +16,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'yarn' - - run: corepack enable - name: Install dependencies run: yarn env: diff --git a/.github/workflows/runtime_prereleases.yml b/.github/workflows/runtime_prereleases.yml index ff19e1693c5f4..02f07c1cfc508 100644 --- a/.github/workflows/runtime_prereleases.yml +++ b/.github/workflows/runtime_prereleases.yml @@ -30,6 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -41,7 +42,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn working-directory: scripts/release diff --git a/.github/workflows/shared_lint.yml b/.github/workflows/shared_lint.yml index 1e77242bd6d13..c1e6fb256481e 100644 --- a/.github/workflows/shared_lint.yml +++ b/.github/workflows/shared_lint.yml @@ -16,6 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -26,7 +27,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - run: corepack enable - run: yarn - run: yarn prettier-check @@ -35,6 +35,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -45,7 +46,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - run: corepack enable - run: yarn - run: node ./scripts/tasks/eslint @@ -54,6 +54,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -64,7 +65,6 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - run: corepack enable - run: yarn - run: ./scripts/ci/check_license.sh @@ -73,6 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: corepack enable - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -83,6 +84,5 @@ jobs: with: path: "**/node_modules" key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - run: corepack enable - run: yarn - run: ./scripts/ci/test_print_warnings.sh