Skip to content

Commit

Permalink
📦 v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MuyianKing committed Nov 6, 2024
1 parent 3a028c7 commit 837cf84
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@muyianking/cli",
"version": "0.1.2",
"version": "0.1.3",
"description": "慕易安的脚手架",
"author": "muyian",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 3 additions & 9 deletions script/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})
})
Expand Down

0 comments on commit 837cf84

Please sign in to comment.