Skip to content
Merged
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
44 changes: 24 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
bun-version: 1.3.11
node-version: '24'
cache: 'npm'

- name: Install dependencies
run: bun install --frozen-lockfile
run: npm ci

- name: Run linting
run: bun run lint
run: npm run lint

build:
name: Build
Expand All @@ -34,16 +35,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
bun-version: 1.3.11
node-version: '24'
cache: 'npm'

- name: Install dependencies
run: bun install --frozen-lockfile
run: npm ci

- name: Build
run: bun run build
run: npm run build

format:
name: Format
Expand All @@ -52,16 +54,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
bun-version: 1.3.11
node-version: '24'
cache: 'npm'

- name: Install dependencies
run: bun install --frozen-lockfile
run: npm ci

- name: Run formatting check
run: bun run format:check
run: npm run format:check

test:
name: Test
Expand All @@ -70,13 +73,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
bun-version: 1.3.11
node-version: '24'
cache: 'npm'

- name: Install dependencies
run: bun install --frozen-lockfile
run: npm ci

- name: Run tests
run: bun run test
run: npm test
22 changes: 9 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

permissions:
contents: write
id-token: write

jobs:
release:
Expand All @@ -17,10 +18,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
bun-version: 1.3.11
node-version: '24'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

- name: Validate tag matches package.json version
run: |
Expand All @@ -32,22 +35,15 @@ jobs:
fi

- name: Install dependencies
run: bun install

- name: Build
run: bun run build
run: npm ci

- name: Publish to npm (stable)
if: "!contains(github.ref_name, '-rc.')"
run: bun publish
env:
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance

- name: Publish to npm (release candidate)
if: "contains(github.ref_name, '-rc.')"
run: bun publish --tag rc
env:
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance --tag rc

- name: Create GitHub Release
if: "!contains(github.ref_name, '-rc.')"
Expand Down
Loading