Skip to content

Commit e234d16

Browse files
committed
fix(ci): enable corepack sooner
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)
1 parent 8b303a6 commit e234d16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
name: Run static checks
1313
steps:
1414
- uses: actions/checkout@v4
15+
- run: corepack enable
1516
- name: Setup node
1617
uses: actions/setup-node@v4
1718
with:
1819
node-version: ${{ env.MAIN_NODE_VERSION }}
1920
cache: 'yarn'
20-
- run: corepack enable
2121
- run: yarn install
2222
- run: yarn run lint
2323
- run: yarn run types
@@ -30,12 +30,12 @@ jobs:
3030
node: ["18", "20", "21"]
3131
steps:
3232
- uses: actions/checkout@v4
33+
- run: corepack enable
3334
- name: Setup node
3435
uses: actions/setup-node@v4
3536
with:
3637
node-version: ${{ matrix.node }}
3738
cache: 'yarn'
38-
- run: corepack enable
3939
- name: Install dependencies
4040
run: yarn install
4141
- name: Run tests
@@ -49,11 +49,11 @@ jobs:
4949
name: Build
5050
steps:
5151
- uses: actions/checkout@v4
52+
- run: corepack enable
5253
- name: Setup node
5354
uses: actions/setup-node@v4
5455
with:
5556
node-version: ${{ env.MAIN_NODE_VERSION }}
56-
- run: corepack enable
5757
- run: yarn install
5858
- run: yarn run build
5959
- uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)