diff --git a/.github/workflows/npm-test.yml b/.github/workflows/npm-test.yml index 12bea5c..432a764 100644 --- a/.github/workflows/npm-test.yml +++ b/.github/workflows/npm-test.yml @@ -1,33 +1,25 @@ # Created using @tscircuit/plop (npm install -g @tscircuit/plop) -name: NPM Test +name: Bun Test on: - push: - branches: - - main pull_request: - branches: - - main jobs: test: runs-on: ubuntu-latest + timeout-minutes: 5 steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Node.js - uses: actions/setup-node@v2 + - name: Setup bun + uses: oven-sh/setup-bun@v1 with: - node-version: 20 + bun-version: latest - name: Install dependencies - run: npm ci - - - name: Build - run: | - npm run build || true + run: bun install - name: Run tests - run: npm run test + run: bun test \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35d6e71..74ec93f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +# Created using @tscircuit/plop (npm install -g @tscircuit/plop) name: Publish to npm on: push: @@ -8,13 +9,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Setup bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest - uses: actions/setup-node@v3 with: node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm install -g pver - - run: npm ci - - run: npm run build + - run: bun install --frozen-lockfile + - run: bun run build - run: pver release env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file