Skip to content

Commit

Permalink
ci: enable corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeniau committed Dec 9, 2024
1 parent e875fef commit ed01e45
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,22 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

# maybe handled via setup-node action one day https://github.com/actions/setup-node/pull/901
- name: enable corepack
run: corepack enable

# why did we did that twice ? https://github.com/actions/setup-node/issues/1075
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- run: yarn install --frozen-lockfile
- run: yarn test

0 comments on commit ed01e45

Please sign in to comment.