From b24006ab9297aac13a8c5739dd9d4eb720d04cdc Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann Date: Mon, 13 May 2024 20:30:42 +0200 Subject: [PATCH] ci: use bun --- .github/workflows/release.yml | 12 ++++++------ .github/workflows/test.yml | 11 ++++++----- bun.lockb | Bin 377734 -> 377734 bytes package.json | 4 ++-- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63d3560..d678488 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,23 +15,23 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: pnpm/action-setup@v3 + - name: Setup Bun + uses: oven-sh/setup-bun@v1 with: - version: 7 + bun-version: latest - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: "pnpm" - name: Install dependencies run: | - pnpm install + bun install - name: Build run: | - pnpm run build --if-present + bun run build --if-present - name: Run tests run: | - pnpm run test + bun run test - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb17d8f..e8085da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,17 +13,18 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: pnpm/action-setup@v3 + - name: Install Bun + uses: oven-sh/setup-bun@v1 with: - version: 7 + bun-version: latest - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: "pnpm" + cache: "bun" - name: Install dependencies run: | - pnpm install + bun install - name: Run tests run: | - pnpm run test + bun run test diff --git a/bun.lockb b/bun.lockb index ea5547e1cfd3532e8a5a20f5b0b16ad41472215f..bc32f0267521ff4997d6fb9d5b6886d64fe7cfc2 100755 GIT binary patch delta 35 rcmZo`7jJ79Z)jm`VcNpH`8_9NoS~knp1H1J`=0mA+xNU@IdvHT<)scJ delta 35 lcmZo`7jJ79Z)jm`VcNpH`8_8S0~ECHdC$Ck&wG|rmjTRL3~&Gd diff --git a/package.json b/package.json index eaa83d3..3769aa0 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "node esbuild.config.mjs", "lint": "eslint --ext .ts .", - "build": "tsc -noEmit -skipLibCheck && pnpm lint && node esbuild.config.mjs production", + "build": "tsc -noEmit -skipLibCheck && bun lint && node esbuild.config.mjs production", "version": "node version-bump.mjs && git add manifest.json versions.json", "semantic-release": "semantic-release", "test": "vitest --passWithNoTests" @@ -115,4 +115,4 @@ ] ] } -} +} \ No newline at end of file