Skip to content

Commit

Permalink
Update npm release script
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Oct 10, 2024
1 parent 9ac56fe commit 71bb0a2
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 @@ -18,7 +18,8 @@
"build": "vite build",
"express:serve": "NODE_ENV=development nodemon server.js",
"dev": "concurrently -k \"npm:express:serve\" \"npm:vue:serve\"",
"release": "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 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 @@ -74,7 +75,8 @@
"eslint-config-gbv": "~2.2",
"lint-staged": "^15.2.10",
"nodemon": "^3.1.7",
"pre-commit": "^1.2.2"
"pre-commit": "^1.2.2",
"yesno": "^0.4.0"
},
"nodemonConfig": {
"ignore": [
Expand Down

0 comments on commit 71bb0a2

Please sign in to comment.