diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d09be165..4783470a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,10 +20,14 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Enable Corepack + # Must run before setup-node's yarn cache: resolves Yarn from packageManager, not v1. + # See: https://github.com/actions/setup-node/issues/1027 + run: corepack enable - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: yarn set version berry + cache: yarn - run: yarn - run: yarn build