From 837cf8479338d65da44facbf60e2535bb6e72961 Mon Sep 17 00:00:00 2001 From: MuyianKing Date: Wed, 6 Nov 2024 16:53:42 +0800 Subject: [PATCH] :package: v0.1.3 --- CHANGELOG.md | 4 ++++ cli/package.json | 2 +- package.json | 2 +- script/publish.js | 12 +++--------- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed396bd..79b7e10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.1.3](https://github.com/MuyianKing/cli/compare/v0.1.2...v0.1.3) (2024-11-06) + + + ## [0.1.2](https://github.com/MuyianKing/cli/compare/v0.1.0...v0.1.2) (2024-11-06) diff --git a/cli/package.json b/cli/package.json index 13377e8..cdc1568 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@muyianking/cli", - "version": "0.1.2", + "version": "0.1.3", "description": "慕易安的脚手架", "author": "muyian", "license": "ISC", diff --git a/package.json b/package.json index 4428619..ae94f08 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cli", "type": "module", - "version": "0.1.2", + "version": "0.1.3", "private": false, "scripts": { "update-dep": "npm-check-updates && ncu -u && pnpm i", diff --git a/script/publish.js b/script/publish.js index e2a27ee..b60d059 100644 --- a/script/publish.js +++ b/script/publish.js @@ -37,18 +37,12 @@ function publish() { child_process.exec('pnpm log', (error) => { if (!error) { // 成功 - child_process.exec('git add .', (error) => { - console.log('error1', error) - + child_process.exec('git add .', () => { const version = `v${_config.version}` - console.log(`git push && git tag ${version} && git push origin ${version}`) - - child_process.exec(`git commit -m"release: ${version}"`, (error) => { - console.log('error2', error) - + child_process.exec(`git commit -m":package: ${version}"`, () => { child_process.exec(`git push && git tag ${version} && git push origin ${version}`, () => { - console.log('success') + console.log('publish success') }) }) })