diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 59fd0d3..903ecca 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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