mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: post version script
This commit is contained in:
parent
338e2b8968
commit
151bc43e62
2 changed files with 20 additions and 1 deletions
|
|
@ -14,7 +14,7 @@
|
|||
"debug-firefox": "web-ext run --source-dir=dist --firefox-profile=firefox-profile --profile-create-if-missing --keep-profile-changes --start-url https://github.com/EnixCoda/Gitako",
|
||||
"analyze-bundle": "ANALYZE= NODE_ENV=production webpack",
|
||||
"postinstall": "node scripts/fix-deps",
|
||||
"preversion": "make version-safari && git add .",
|
||||
"postversion": "sh scripts/post-version.sh",
|
||||
"build": "VERSION=v$(node scripts/get-version.js) NODE_ENV=production webpack",
|
||||
"roll": "make release",
|
||||
"test": "yarn run test:parallel && yarn run test:non-parallel",
|
||||
|
|
|
|||
19
scripts/post-version.sh
Normal file
19
scripts/post-version.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# exit on error
|
||||
set -e
|
||||
|
||||
# get current version
|
||||
version=$(node scripts/get-version.js)
|
||||
|
||||
# remove git tag
|
||||
git tag -d v$version
|
||||
|
||||
# update Safari version
|
||||
make version-safari
|
||||
|
||||
# merge to previous git
|
||||
git add .
|
||||
git commit --amend --no-edit
|
||||
|
||||
# add git tag
|
||||
git tag v$version
|
||||
Loading…
Reference in a new issue