Skip to content

Commit 82b079d

Browse files
authored
fix: restore node shebang for npm users (#1765)
1 parent 00425b0 commit 82b079d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@ jobs:
2525
- uses: oven-sh/setup-bun@v2.1.2
2626
with:
2727
bun-version: 1.3.9
28+
- uses: actions/setup-node@v4
2829
- run: bun install --frozen-lockfile
2930
- run: bun run build:linux-amd64
3031
- run: bin/linux-amd64/gitlab-ci-local --version
3132
- run: bin/linux-amd64/gitlab-ci-local --help
33+
- run: bun run build:node
34+
- run: node dist/index.js --version
35+
- run: node dist/index.js --help
36+
- run: head -1 dist/index.js | grep -q '#!/usr/bin/env node'
3237

3338
eslint:
3439
runs-on: ubuntu-24.04

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bun
1+
#!/usr/bin/env node
22
import chalk from "chalk-template";
33
import yargs from "yargs";
44
import {Parser} from "./parser.js";

0 commit comments

Comments
 (0)