Skip to content

Commit 79a7d31

Browse files
committed
chore: replace release scripts
1 parent 18cc3c8 commit 79a7d31

File tree

12 files changed

+1807
-6714
lines changed

12 files changed

+1807
-6714
lines changed

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

commitlint.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const Configuration = {
2+
extends: ['@commitlint/config-conventional'],
3+
};
4+
5+
export default Configuration;

lerna.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
2-
"version": "independent",
3-
"packages": [
4-
"packages/*"
5-
],
2+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3+
"version": "2.66.0",
4+
"npmClient": "pnpm",
65
"command": {
7-
"publish": {
8-
"npmClient": "npm",
9-
"verifyAccess": false,
10-
"ignoreChanges": ["*.md", "**/test/**"],
11-
"message": "chore(release): publish"
6+
"version": {
7+
"message": "chore(release): publish %s"
128
}
13-
}
9+
},
10+
"ignoreChanges": ["**/__fixtures__/**", "**/__tests__/**", "**/*.md"]
1411
}

package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"clean": "rimraf ./**/node_modules",
1212
"generate": "pnpm -r --workspace-concurrency=1 run generate",
1313
"generate:core": "pnpm -r --filter @sensoro-design/icons-svg run generate",
14-
"build": "pnpm -r --workspace-concurrency=1 run build",
15-
"build:clean": "pnpm -r --workspace-concurrency=1 run build:clean",
16-
"build:core": "pnpm -r --filter @sensoro-design/icons-svg run build",
1714
"release": "walrus release",
15+
"release:build": "lerna run --concurrency 8 --no-private build",
16+
"release:version": "lerna version --conventional-commits --no-push --yes --no-private",
17+
"release:publish": "pnpm publish --recursive --tag latest",
1818
"prepare": "husky || true",
1919
"preinstall": "npx only-allow pnpm"
2020
},
@@ -27,6 +27,8 @@
2727
},
2828
"homepage": "https://sen-icons.xingkang.wang",
2929
"devDependencies": {
30+
"@commitlint/cli": "catalog:",
31+
"@commitlint/config-conventional": "catalog:",
3032
"@pansy/shared": "catalog:",
3133
"@rgrove/parse-xml": "catalog:",
3234
"@sensoro-design/icons": "workspace:*",
@@ -43,9 +45,9 @@
4345
"@types/through2": "catalog:",
4446
"@types/vinyl": "catalog:",
4547
"@umijs/utils": "catalog:",
46-
"@walrus/cli": "catalog:",
47-
"@walrus/plugin-release": "catalog:",
4848
"antd": "catalog:",
49+
"chalk": "catalog:",
50+
"cross-spawn": "catalog:",
4951
"del": "catalog:",
5052
"dumi": "catalog:",
5153
"father": "catalog:",
@@ -54,20 +56,23 @@
5456
"gulp-header": "catalog:",
5557
"gulp-rename": "catalog:",
5658
"husky": "catalog:",
57-
"lerna": "^6.5.1",
59+
"lerna": "catalog:",
5860
"lint-staged": "catalog:",
5961
"lodash": "catalog:",
6062
"prettier": "catalog:",
6163
"ramda": "catalog:",
6264
"react": "catalog:",
6365
"react-dom": "catalog:",
6466
"rimraf": "catalog:",
67+
"signale": "catalog:",
68+
"simple-git": "catalog:",
6569
"svgo": "catalog:",
6670
"through2": "catalog:",
6771
"tsx": "catalog:",
6872
"typescript": "catalog:",
6973
"use-clipboard-hook": "catalog:",
7074
"vinyl": "catalog:",
75+
"walrus": "workspace:*",
7176
"zx": "catalog:"
7277
},
7378
"lint-staged": {

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@ant-design/colors": "^6.0.0",
3232
"@babel/runtime": "^7.11.2",
3333
"@pansy/classnames": "^1.0.1",
34-
"@sensoro-design/icons-svg": "2.65.0",
34+
"@sensoro-design/icons-svg": "workspace:*",
3535
"rc-util": "^5.19.3"
3636
},
3737
"publishConfig": {

0 commit comments

Comments
 (0)