From 056f90dcb2663bf0039964abaf38918422ce91ad Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 24 Mar 2025 21:28:59 -0700 Subject: [PATCH 1/3] chore(ci): remove redundant corepack enable --- .github/workflows/build.yml | 2 +- .github/workflows/push.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92c9ae78..3437d1d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: corepack - run: npm install -g corepack && corepack enable + run: npm i -g corepack - uses: biomejs/setup-biome@v2 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 1162b63d..bd024120 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: corepack - run: npm install -g corepack && corepack enable + run: npm i -g corepack - uses: actions/setup-node@v4 with: cache: "yarn" From cb41a9c1c97eb22b56c0966823e78ba328a4c921 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 24 Mar 2025 22:21:33 -0700 Subject: [PATCH 2/3] chore(ci): move corepack installation before running yarn --- .github/workflows/build.yml | 4 ++-- .github/workflows/push.yml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3437d1d7..47163e1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,13 +13,13 @@ jobs: steps: - uses: actions/checkout@v4 - - name: corepack - run: npm i -g corepack - uses: biomejs/setup-biome@v2 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: "yarn" + - name: corepack + run: npm i -g corepack - name: install run: yarn - name: lint+format diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index bd024120..650333a3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -16,13 +16,14 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 - - name: corepack - run: npm i -g corepack - uses: actions/setup-node@v4 with: cache: "yarn" - - run: yarn + - name: corepack + run: npm i -g corepack + - name: install + run: yarn - name: Create Release Pull Request or Publish to npm id: changesets From 6c2b377f839e612d5aef03762f447fe2afe0a553 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 24 Mar 2025 22:28:54 -0700 Subject: [PATCH 3/3] Revert "chore(ci): move corepack installation before running yarn" This reverts commit cb41a9c1c97eb22b56c0966823e78ba328a4c921. To check if cache gets used --- .github/workflows/build.yml | 4 ++-- .github/workflows/push.yml | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47163e1e..3437d1d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,13 +13,13 @@ jobs: steps: - uses: actions/checkout@v4 + - name: corepack + run: npm i -g corepack - uses: biomejs/setup-biome@v2 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: "yarn" - - name: corepack - run: npm i -g corepack - name: install run: yarn - name: lint+format diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 650333a3..bd024120 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -16,14 +16,13 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 + - name: corepack + run: npm i -g corepack - uses: actions/setup-node@v4 with: cache: "yarn" - - name: corepack - run: npm i -g corepack - - name: install - run: yarn + - run: yarn - name: Create Release Pull Request or Publish to npm id: changesets