Skip to content

Commit

Permalink
fix CI so it accepts yarn 4
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Nov 25, 2024
1 parent f4061c9 commit a450db5
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Enable corepack'
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'yarn'

- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile
- name: Install dependencies
run: yarn install --immutable

- name: "Lint"
run: yarn lint -f @react-hookz/gha .
Expand Down Expand Up @@ -56,15 +56,12 @@ jobs:
uses: actions/checkout@v4
with:
ref: "master"

- name: 'Enable corepack'
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20

- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile
node-version: 22
cache: 'yarn'

- name: "Release"
id: "release"
Expand Down

0 comments on commit a450db5

Please sign in to comment.