[Deploy] Auto semver versioning
This commit is contained in:
parent
6dc9b4f6d3
commit
a6b954fe76
@ -1,14 +1,15 @@
|
||||
{
|
||||
"name": "telegram-t",
|
||||
"version": "1.0.0-0",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "cross-env APP_ENV=development webpack-dev-server -d",
|
||||
"build": "webpack -p",
|
||||
"build:staging": "rm -rf dist/ && APP_ENV=staging npm run build && ./deploy/copy_to_dist.sh",
|
||||
"build:production": "npm i && rm -rf dist/ && APP_VERSION=$(git rev-parse --short HEAD) APP_ENV=production npm run build && ./deploy/copy_to_dist.sh",
|
||||
"build:production": "npm i && rm -rf dist/ && APP_VERSION=$(npm run inc_version) APP_ENV=production npm run build && ./deploy/copy_to_dist.sh",
|
||||
"deploy:production": "npm run build:production && git add -A && git commit -a -m '[Build]' && git push",
|
||||
"inc_version": "echo $((`cat .patch-version` + 1)) > .patch-version && echo \"$(node -p -e \"require('./package.json').version.match(/^\\d+\\.\\d+/)[0]\").$(cat .patch-version)\"",
|
||||
"perf:serve": "APP_ENV=perf parcel src/index-perf.html",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user