From 3f1dbb0b61a1a124defb3478a8311af45c95d052 Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Tue, 12 Mar 2024 16:04:27 +0100 Subject: [PATCH] fix(ci): use npm over bun --- .github/workflows/build-test.yml | 15 ++++++++------- package.json | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 8cf64c5..02886bc 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -11,13 +11,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 # Checkout repo + uses: actions/checkout@v3 - - name: Setup Bun - uses: oven-sh/setup-bun@v1 # Setup bun + - name: Setup Node.js + uses: actions/setup-node@v3 with: - bun-version: latest + node-version: 21.x + cache: "npm" - - run: bun i # Install dependencies - - run: bun run build # Build sources - - run: bun test # Run tests + - run: npm ci + - run: npm run build + - run: npm run test diff --git a/package.json b/package.json index 74b60e3..06b9e9b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "tsc", "test": "jest", - "pretest": "bun run build" + "pretest": "tsc" }, "files": [ "lib/**/*",