Skip to content

Commit 678b1d0

Browse files
authored
feat: release ci and bumpp
feat: release ci and bumpp
2 parents a9e653e + 1605825 commit 678b1d0

3 files changed

Lines changed: 284 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v4
16+
with:
17+
version: 9
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: "20"
22+
cache: "pnpm"
23+
24+
- run: pnpm install --frozen-lockfile
25+
26+
- run: pnpm test
27+
28+
- run: pnpm build

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"dev": "tsx src/cli.ts",
2323
"start": "node dist/cli.js",
2424
"test": "vitest run",
25-
"test:watch": "vitest"
25+
"test:watch": "vitest",
26+
"bump": "bumpp",
27+
"bump:patch": "pnpm version patch",
28+
"bump:minor": "pnpm version minor",
29+
"bump:major": "pnpm version major",
30+
"release": "pnpm run test && pnpm run build && pnpm version patch && pnpm publish",
31+
"release:beta": "pnpm run test && pnpm run build && pnpm version prerelease --preid=beta && pnpm publish --tag beta"
2632
},
2733
"keywords": [
2834
"dev-server",
@@ -45,7 +51,8 @@
4551
"tsc-alias": "^1.8.10",
4652
"tsx": "^4.19.2",
4753
"typescript": "^5.7.2",
48-
"vitest": "^2.1.6"
54+
"vitest": "^2.1.6",
55+
"bumpp": "^10.0.0"
4956
},
5057
"packageManager": "pnpm@9.15.0"
5158
}

0 commit comments

Comments
 (0)