Skip to content

Commit

Permalink
Fix corepack enable actions/setup-node#1027
Browse files Browse the repository at this point in the history
  • Loading branch information
tiziodcaio committed Sep 15, 2024
1 parent 926ff6d commit 8ce9175
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compiler_playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/compiler_prereleases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/compiler_typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

Expand All @@ -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'
Expand All @@ -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

Expand All @@ -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'
Expand All @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/devtools_regression_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/runtime_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 }}

Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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

Expand Down Expand Up @@ -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'
Expand All @@ -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 }}

Expand All @@ -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'
Expand All @@ -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:
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/runtime_commit_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down
Loading

0 comments on commit 8ce9175

Please sign in to comment.