Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 505b9f7

Browse files
committed
chore: add release-it configuration and update package scripts
- Introduced a new `.release-it.json` file to configure release-it for automated versioning and GitHub releases. - Added a `release` script to `package.json` for easy release management. - Updated the `test:ci` script to ensure it runs tests in the CI environment. - Included `release-it` as a dependency in `package.json` to facilitate the release process.
1 parent fe67f79 commit 505b9f7

3 files changed

Lines changed: 978 additions & 0 deletions

File tree

.release-it.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore: release v${version}"
4+
},
5+
"github": {
6+
"release": true,
7+
"releaseName": "v${version}"
8+
},
9+
"hooks": {
10+
"before:init": ["pnpm run lint", "pnpm test:ci"],
11+
"after:bump": "pnpm run build",
12+
"after:git:release": "echo After git push, before github release",
13+
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
14+
}
15+
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@
2626
"scripts": {
2727
"build": "unbuild",
2828
"build:stub": "unbuild --stub",
29+
"release": "release-it",
2930
"dev": "pnpm run build:stub && STUB=true node dist/index.mjs",
3031
"lint": "eslint .",
3132
"lint:fix": "eslint . --fix",
3233
"test": "vitest",
34+
"test:ci": "vitest run",
3335
"test:ui": "vitest --ui",
3436
"coverage": "vitest run --coverage"
3537
},
@@ -53,6 +55,7 @@
5355
"eslint": "^9.25.1",
5456
"memfs": "^4.17.0",
5557
"msw": "^2.7.5",
58+
"release-it": "^19.0.2",
5659
"typescript": "^5.8.3",
5760
"unbuild": "^3.5.0",
5861
"vite": "^6.3.4",

0 commit comments

Comments
 (0)