Skip to content

Commit

Permalink
test and release should use bun
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Sep 16, 2024
1 parent 8b584c9 commit 3547abb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Created using @tscircuit/plop (npm install -g @tscircuit/plop)
name: Publish to npm
on:
push:
Expand All @@ -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 }}

0 comments on commit 3547abb

Please sign in to comment.