diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb851af..685534c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,13 +21,17 @@ jobs: uses: actions/setup-node@v4 with: node-version: 16 - cache: 'yarn' - - - name: Install dependencies - run: yarn ci + # cache is broken until we can enable Corepack directly in setup-node + # instead of having to wait to enable it manually later. + # See https://github.com/actions/setup-node/issues/531. + # cache: 'yarn' - name: Execute build run: | + corepack enable + yarn config set nodeLinker node-modules + yarn plugin import workspace-tools + yarn install --immutable yarn format-check yarn test yarn package diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d9cd818..6e00b90 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,7 +23,10 @@ jobs: - name: Build run: | - yarn ci + corepack enable + yarn config set nodeLinker node-modules + yarn plugin import workspace-tools + yarn install --immutable yarn format-check yarn test yarn package diff --git a/.github/workflows/run-enterprise-action.yml b/.github/workflows/run-enterprise-action.yml index c2d7028..acce96d 100644 --- a/.github/workflows/run-enterprise-action.yml +++ b/.github/workflows/run-enterprise-action.yml @@ -33,11 +33,17 @@ jobs: uses: actions/setup-node@v4 with: node-version: 16 - cache: 'yarn' + # cache is broken until we can enable Corepack directly in setup-node + # instead of having to wait to enable it manually later. + # See https://github.com/actions/setup-node/issues/531. + # cache: 'yarn' - name: Build run: | - yarn ci + corepack enable + yarn config set nodeLinker node-modules + yarn plugin import workspace-tools + yarn install --immutable yarn package - name: Gatling Enterprise Action @@ -65,4 +71,3 @@ jobs: echo "Deprecated outputs:" echo "runs_status_code=${{ steps.enterprise-action.outputs.runs_status_code }}" echo "runs_status_name=${{ steps.enterprise-action.outputs.runs_status_name }}" -