Skip to content

Commit

Permalink
Update release script in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Oct 2, 2024
1 parent 124d376 commit b705f8d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"build": "rm -rf dist/ && vite build --outDir dist",
"serve": "cross-env NODE_ENV=production node --experimental-json-modules -r dotenv/config server",
"debug": "node --inspect-brk -r dotenv/config server",
"release": "npm run build && npm test && git checkout dev && git pull && npm version $SEMVER && git push && git checkout main && git merge dev && git push --follow-tags && git checkout dev",
"yesno": "node -e \"const yesno = require('yesno'); yesno({ question: 'Are you sure you want to continue?' }).then(ok => process.exit(ok ? 0 : 1));\"",
"release": "test $(git rev-parse --abbrev-ref HEAD) = dev && git pull && npm test && npm run build && npm version $SEMVER && npm run --silent yesno && (git push && git checkout main && git merge dev && git push --follow-tags && git checkout dev) || (git tag -d $(git describe --tags) && git reset --hard HEAD~1)",
"release:patch": "SEMVER=patch npm run release",
"release:minor": "SEMVER=minor npm run release",
"release:major": "SEMVER=major npm run release"
Expand Down Expand Up @@ -76,6 +77,7 @@
"serve-static": "^1.16.2",
"unplugin-icons": "^0.19.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.8"
"vite": "^5.4.8",
"yesno": "^0.4.0"
}
}

0 comments on commit b705f8d

Please sign in to comment.