Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a41848929 | |||
| 3a091f4875 |
@@ -10,12 +10,12 @@ if(!version){
|
|||||||
|
|
||||||
shell.exec ('npm install --registry https://registry.npmmirror.com');
|
shell.exec ('npm install --registry https://registry.npmmirror.com');
|
||||||
shell.exec ('npm run build-client');
|
shell.exec ('npm run build-client');
|
||||||
shell.exec ('npm run changelog');
|
// shell.exec ('npm run changelog');
|
||||||
shell.exec ('git add .');
|
shell.exec ('git add .');
|
||||||
shell.exec ('git commit -a -m "chore: update static file"');
|
shell.exec ('git commit -a -m "chore: update static file"');
|
||||||
|
|
||||||
console.log ('exec: git pull origin master');
|
console.log ('exec: git pull origin main');
|
||||||
shell.exec ('git pull origin master');
|
shell.exec ('git pull origin main');
|
||||||
let a = shell.exec (`git tag |grep ${version} |wc -l`);
|
let a = shell.exec (`git tag |grep ${version} |wc -l`);
|
||||||
if (a && parseInt (a) > 0) {
|
if (a && parseInt (a) > 0) {
|
||||||
shell.exec ('git tag -d ' + version);
|
shell.exec ('git tag -d ' + version);
|
||||||
@@ -26,5 +26,5 @@ shell.exec ('git push origin ' + version);
|
|||||||
|
|
||||||
console.log('git push success', version)
|
console.log('git push success', version)
|
||||||
|
|
||||||
console.log('正在执行npm发布')
|
// console.log('正在执行npm发布')
|
||||||
shell.exec('npm publish')
|
// shell.exec('npm publish')
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yapi-vendor",
|
"name": "yapi-vendor",
|
||||||
"version": "1.11.0",
|
"version": "1.12.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yapi-vendor",
|
"name": "yapi-vendor",
|
||||||
"version": "1.11.0",
|
"version": "1.12.0",
|
||||||
"description": "YAPI",
|
"description": "YAPI",
|
||||||
"main": "server/app.js",
|
"main": "server/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"start": " node server/app.js",
|
"start": " node server/app.js",
|
||||||
"test": "ava",
|
"test": "ava",
|
||||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||||
"build-client": "NODE_ENV=production ykit pack -m",
|
"build-client": "set NODE_ENV=production ykit pack -m",
|
||||||
"npm-publish": "node ./npm-publish.js",
|
"npm-publish": "node ./npm-publish.js",
|
||||||
"docs": "ydoc build"
|
"docs": "ydoc build"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user