2 Commits

Author SHA1 Message Date
1a41848929 chore: update static file 2024-03-02 01:59:57 +08:00
3a091f4875 chore: update static file 2024-03-02 01:56:13 +08:00
3 changed files with 8 additions and 8 deletions

View File

@@ -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
View File

@@ -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": {

View File

@@ -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"
}, },