From fba9deb7d2b75530fb3c11c69810d9b3b4549147 Mon Sep 17 00:00:00 2001 From: Pascal Weiland Date: Tue, 2 Jul 2024 12:05:57 +0200 Subject: [PATCH] feat(workflows): use bun instead of yarn With `use-bun: true` option when using _linter.yml_ we will use bun over yarn for installation. NOTE: `install-all` still relies on yarn. --- .github/workflows/linter.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 7cb3992..5d89de3 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -158,14 +158,19 @@ jobs: bun-version: latest - name: 📦 Enable Corepack + if: inputs.use-bun != true run: corepack enable + - name: 🛠 Use Bun (if `use-bun`) + if: inputs.use-bun == true + run: bun install + - name: 📦 Install Dependencies (if `install:all`) if: inputs.install-all == true run: yarn -v && yarn && yarn install:all - name: 📦 Install Dependencies (if `install`) - if: inputs.install-all != true + if: inputs.install-all != true && inputs.use-bun != true run: yarn install - name: 🔑 Generate dummy keys