Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@ jobs:
with:
node-version: lts/*

- name: Install bun
run: curl -fsSL https://bun.sh/install | bash
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Set package version
run: |
~/.bun/bin/bun ./scripts/set-version.js . ${{ env.VERSION }}
echo "export const VERSION='${{ env.VERSION }}'" > ./src/version.ts

- name: Install
run: ~/.bun/bin/bun install
- name: Install dependencies
run: bun install

- name: Build package
run: ~/.bun/bin/bun run build
run: bun run build

- name: Authenticate Registry
run: npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }}
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ jobs:
- name: Setup repo
uses: actions/checkout@v3

- name: Install bun
run: curl -fsSL https://bun.sh/install | bash
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
run: ~/.bun/bin/bun install
run: bun install

- name: Run tests
run: ~/.bun/bin/bun test --coverage
run: bun test --coverage

- name: Build
run: ~/.bun/bin/bun run build


run: bun run build