Skip to content

Commit d53fd2b

Browse files
authored
build: update release script (#343)
* build: improve release script * build: update release * build: re-create pnpm-lock.yml
1 parent f9e509d commit d53fd2b

File tree

5 files changed

+1079
-1021
lines changed

5 files changed

+1079
-1021
lines changed

README-zh_CN.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ pnpm run dev
8181

8282
```bash
8383
pnpm build
84-
pnpm release -r 3.0.1
85-
pnpm publish --registry https://registry.npmjs.org/
84+
# pnpm@6
85+
pnpm release -- -r 3.0.1
86+
npm publish --registry https://registry.npmjs.org/
8687
```
8788

8889
### 发布站点

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ Open your browser and visit [http://127.0.0.1:8000](http://127.0.0.1:8000),We
8181

8282
```bash
8383
pnpm build
84-
pnpm release -r 3.0.1
85-
pnpm publish --registry https://registry.npmjs.org/
84+
# pnpm@6
85+
pnpm release -- -r 3.0.1
86+
npm publish --registry https://registry.npmjs.org/
8687
```
8788

8889
### Publish website

package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"lint:es": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
2121
"prepublishOnly": "father doctor && npm run build",
2222
"deploy": "npm run docs:build && gh-pages -d docs-dist",
23-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
24-
"release": "bumpp && npm publish",
25-
"postversion": "npm run changelog"
23+
"release": "./scripts/release.sh"
2624
},
2725
"authors": [
2826
"dtinsight UED"
@@ -84,7 +82,6 @@
8482
"@umijs/lint": "^4.0.0",
8583
"babel-plugin-import": "^1.13.5",
8684
"babel-types": "^6.26.0",
87-
"bumpp": "^9.1.0",
8885
"conventional-changelog-cli": "^2.2.2",
8986
"cz-conventional-changelog": "^3.3.0",
9087
"dumi": "^2.1.13",

0 commit comments

Comments
 (0)