Skip to content

Commit 43e34dd

Browse files
authored
Merge pull request #453 from jansule/use-bun
chore: use bun in workflows and package.json
2 parents 7b6a8ef + 1e874e6 commit 43e34dd

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

.github/workflows/on-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: oven-sh/setup-bun@v2
1515

1616
- name: Install dependencies ⏬
17-
run: bun install
17+
run: bun install --frozen-lockfile
1818

1919
- name: Lint code 💄
2020
run: bun run lint

.github/workflows/on-push-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: oven-sh/setup-bun@v2
1818

1919
- name: Install dependencies ⏬
20-
run: bun install
20+
run: bun install --frozen-lockfile
2121

2222
- name: Lint code 💄
2323
run: bun run lint

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ jobs:
1111
- name: Checkout sources 🔰
1212
uses: actions/checkout@v4
1313

14-
- name: Setup Node.js 18 👷🏻
15-
uses: actions/setup-node@v4
16-
with:
17-
node-version: 18
14+
- name: Use bun
15+
uses: oven-sh/setup-bun@v2
1816

1917
- name: Install dependencies ⏬
20-
run: npm ci
18+
run: bun install --frozen-lockfile
2119

2220
- name: Release 🚀
2321
uses: cycjimmy/[email protected]

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@semantic-release/git",
2929
{
3030
"assets": [
31-
"CHANGELOG.md", "package.json", "package-lock.json", "./src/version.ts"
31+
"CHANGELOG.md", "package.json", "bun.lock", "./src/version.ts"
3232
],
3333
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
3434
}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
"geostyler-cli": "dist/geostyler.cjs"
1212
},
1313
"scripts": {
14-
"build": "npm run build-clean && npm run build-only",
14+
"build": "bun run build-clean && bun run build-only",
1515
"build-clean": "rimraf build/ dist/",
1616
"build-only": "tsc -p tsconfig.json && rollup -c rollup.config.mjs",
17-
"lint:build": "npm run lint && npm run build",
17+
"lint:build": "bun run lint && bun run build",
1818
"start": "node dist/geostyler.cjs",
1919
"lint": "eslint . && tsc --noEmit --project tsconfig.json",
2020
"test": "node test.cjs",
21-
"build-binaries": "npm run build && pkg dist/geostyler.cjs --targets node18-linux-x64,node18-macos-x64,node18-win-x64 --out-path binaries",
22-
"package-binaries": "npm run build-binaries && node package-binaries.cjs",
23-
"prepublishOnly": "npm run build",
24-
"postpublish": "npm run package-binaries"
21+
"build-binaries": "bun run build && pkg dist/geostyler.cjs --targets node18-linux-x64,node18-macos-x64,node18-win-x64 --out-path binaries",
22+
"package-binaries": "bun run build-binaries && node package-binaries.cjs",
23+
"prepublishOnly": "bun run build",
24+
"postpublish": "bun run package-binaries"
2525
},
2626
"pkg": {
2727
"targets": [

0 commit comments

Comments
 (0)