chore: 添加 semantic-release 配置实现自动化发布管理
This commit is contained in:
parent
e193238a54
commit
7af9b6b9e6
17
.release.config.js
Normal file
17
.release.config.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
module.exports = {
|
||||||
|
branches: ["main", "master"],
|
||||||
|
plugins: [
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
"@semantic-release/changelog",
|
||||||
|
// "@semantic-release/npm",
|
||||||
|
[
|
||||||
|
"@semantic-release/git",
|
||||||
|
{
|
||||||
|
assets: ["CHANGELOG.md", "package.json"],
|
||||||
|
message: "chore(release): ${nextRelease.version} [skip ci]",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
// "@semantic-release/github",
|
||||||
|
],
|
||||||
|
};
|
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "y-code",
|
"name": "y-code",
|
||||||
"version": "2.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"release": "semantic-release",
|
||||||
"dev": "cross-env farm start",
|
"dev": "cross-env farm start",
|
||||||
"build:pre": "cross-env farm build --mode staging",
|
"build:pre": "cross-env farm build --mode staging",
|
||||||
"build:pro": "cross-env farm build --mode production",
|
"build:pro": "cross-env farm build --mode production",
|
||||||
@ -47,6 +48,7 @@
|
|||||||
"eslint-plugin-vue": "^9.17.0",
|
"eslint-plugin-vue": "^9.17.0",
|
||||||
"less": "^4.2.0",
|
"less": "^4.2.0",
|
||||||
"npm-run-all2": "^6.1.1",
|
"npm-run-all2": "^6.1.1",
|
||||||
|
"semantic-release": "^24.2.1",
|
||||||
"typescript": "~5.3.0",
|
"typescript": "~5.3.0",
|
||||||
"unplugin-vue-components": "^0.26.0",
|
"unplugin-vue-components": "^0.26.0",
|
||||||
"vite": "^5.0.11",
|
"vite": "^5.0.11",
|
||||||
|
1697
pnpm-lock.yaml
generated
1697
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user