Skip to content

Commit

Permalink
fix(ci): enable corepack sooner
Browse files Browse the repository at this point in the history
CI was failing, probably because of a change in the setup-node action:
https://github.com/gilbsgilbs/babel-plugin-i18next-extract/actions/runs/7363053375/job/20042120587?pr=264

Enabling corepack before starting the action should fix the issue. See
actions/setup-node#480 (comment)
  • Loading branch information
gilbsgilbs committed Dec 30, 2023
1 parent 8b303a6 commit e234d16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
name: Run static checks
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.MAIN_NODE_VERSION }}
cache: 'yarn'
- run: corepack enable
- run: yarn install
- run: yarn run lint
- run: yarn run types
Expand All @@ -30,12 +30,12 @@ jobs:
node: ["18", "20", "21"]
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- run: corepack enable
- name: Install dependencies
run: yarn install
- name: Run tests
Expand All @@ -49,11 +49,11 @@ jobs:
name: Build
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.MAIN_NODE_VERSION }}
- run: corepack enable
- run: yarn install
- run: yarn run build
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit e234d16

Please sign in to comment.