From b0b042b6c0cf4b4ff4f7ef0296c2c001f92eff65 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 6 Apr 2024 10:28:14 -0700 Subject: [PATCH] ci: switch Yarn to Bun --- .github/workflows/ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4a622c..eb8f8aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,21 +17,18 @@ jobs: steps: - uses: actions/checkout@v4 - - - uses: actions/cache@v4 - id: yarn-cache + - uses: oven-sh/setup-bun@v1 with: - path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + bun-version: 1.1.3 - name: Install dependencies - run: yarn install + run: bun install - name: Build the library - run: yarn prepack + run: bun prepack - name: Run unit tests - run: yarn test + run: bun test # Only trigger deploy if previous steps pass and branch is main - name: Deploy docs