diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0142de62..c3b75068 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 build + run: bun run build - name: Run unit tests - run: yarn test + run: bun test # Only trigger deploy if previous steps pass and branch is main - name: Deploy docs diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml index 0703dcc0..f51362f1 100644 --- a/.github/workflows/publish-to-npm.yml +++ b/.github/workflows/publish-to-npm.yml @@ -15,16 +15,22 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 + + # The Node.js action is required to use npm. - uses: actions/setup-node@v4 with: node-version: "20.x" registry-url: "https://registry.npmjs.org" + - uses: oven-sh/setup-bun@v1 + with: + bun-version: 1.1.3 + - name: Install dependencies - run: yarn install + run: bun install - name: Build package - run: yarn build + run: bun run build - name: Publish package env: