Skip to content

Commit

Permalink
ci: 修改发布功能
Browse files Browse the repository at this point in the history
  • Loading branch information
easonchiu committed Aug 2, 2021
1 parent a53b762 commit 660ae2e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 38 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"scripts": {
"start": "cross-env NODE_ENV=development PACKAGE=development node scripts/start.js",
"build": "cross-env NODE_ENV=production PACKAGE=production node scripts/build.js",
"release": "sh scripts/release.sh",
"clean": "rimraf build",
"ci": "yarn commit",
"commit": "git-cz",
Expand All @@ -25,7 +24,8 @@
"lint": "tsc --build tsconfig.build.json && node node_modules/tslint/bin/tslint -c ./tslint.json -p ./tsconfig.build.json",
"lint-staged": "lint-staged",
"np": "np --no-cleanup --yolo --no-publish",
"prepublishOnly": "yarn clean && yarn prettier && yarn lint && yarn build && yarn np"
"ps": "sh ./scripts/publish.sh",
"prepublishOnly": "yarn clean && yarn prettier && yarn lint && yarn build && yarn ps"
},
"publishConfig": {
"registry": "http://registry.npmjs.org"
Expand Down
10 changes: 10 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

echo 'publish with proxy:'
git config --global http.https://github.com.proxy http://127.0.0.1:10080
git config --global https.https://github.com.proxy https://127.0.0.1:10080
git config --global http.https://github.com.proxy
git config --global https.https://github.com.proxy
yarn np
git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy
36 changes: 0 additions & 36 deletions scripts/release.sh

This file was deleted.

0 comments on commit 660ae2e

Please sign in to comment.