Skip to content

Commit 4bcefd9

Browse files
committed
chore: wip
1 parent d2d31d4 commit 4bcefd9

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,15 @@ jobs:
3838
run: bunx changelogithub
3939
env:
4040
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
41+
42+
- name: Attach Binaries
43+
uses: softprops/action-gh-release@v2
44+
with:
45+
files: |
46+
bin/git-hooks-linux-x64
47+
bin/git-hooks-linux-arm64
48+
bin/git-hooks-windows-x64.exe
49+
bin/git-hooks-darwin-x64
50+
bin/git-hooks-darwin-arm64
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ logs
1010
node_modules
1111
temp
1212
docs/.vitepress/cache
13+
git-hooks*

.vscode/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ scanstride
6262
sendemail
6363
shikijs
6464
socio
65+
softprops
6566
Solana
6667
Spatie
6768
stacksjs

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,21 @@
4343
},
4444
"files": ["README.md", "dist"],
4545
"scripts": {
46-
"build": "bun --bun build.ts",
46+
"build": "bun build.ts && bun run compile",
47+
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/git-hooks",
48+
"compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64",
49+
"compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/git-hooks-linux-x64",
50+
"compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/git-hooks-linux-arm64",
51+
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/git-hooks-windows-x64.exe",
52+
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/git-hooks-darwin-x64",
53+
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/git-hooks-darwin-arm64",
4754
"postinstall": "bun ./scripts/postinstall.ts",
4855
"uninstall": "bun ./scripts/uninstall.ts",
4956
"lint": "bunx --bun eslint .",
5057
"lint:fix": "bunx --bun eslint . --fix",
5158
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
5259
"changelog": "bunx changelogen --output CHANGELOG.md",
53-
"prepublishOnly": "bun --bun run build",
60+
"prepublishOnly": "bun --bun run build && bun run compile:all",
5461
"release": "bun run changelog && bunx bumpp package.json --all",
5562
"test": "bun test",
5663
"dev:docs": "bun --bun vitepress dev docs",

0 commit comments

Comments
 (0)