Skip to content

bun #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 14, 2025
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
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,28 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ["15", "14", "12", "10"]

steps:
- name: Code Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: ${{ matrix.node }}
bun-version: latest

- name: Show Bun version
run: |
echo "Bun version: $(bun --version)"

- name: Install Dependencies
run: |
npm install -g pnpm@5
pnpm i --frozen-lockfile
bun install --frozen
env:
HUSKY_SKIP_INSTALL: 1
CI: true

- name: Test
run: pnpm t
run: bun run test
env:
CI: true
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,24 @@ jobs:
- name: Code Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: "14"
bun-version: latest

- name: Show Bun version
run: |
echo "Bun version: $(bun --version)"

- name: Install Dependencies
run: |
npm install -g pnpm@5
pnpm i --frozen-lockfile
bun install --frozen
env:
HUSKY_SKIP_INSTALL: 1
CI: true

- name: Release
run: pnpm run release
run: bun run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
98 changes: 22 additions & 76 deletions bun.lock

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
# Prepends $PATH with `node` executable which's a symlink to `bun`
bun = true

[install]
# Use the exact versions specified in package.json
exact = true

# Cache downloaded packages
cache = true

# Use frozen installation (equivalent to npm's --frozen-lockfile)
frozen = true
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"commit": "commit",
"prelint": "prettier -l --write .",
"lint": "eslint --ext .ts,.js --fix .",
"prepublishOnly": "npm run build",
"prepublishOnly": "bun run build",
"release": "semantic-release",
"pretest": "npm run lint",
"pretest": "bun run lint",
"test": "jest"
},
"dependencies": {
Expand Down
Loading