chore(npm): use release script for determining version tag prefix
This commit is contained in:
parent
1e74770ea2
commit
d0e45ff2f1
@ -24,8 +24,7 @@
|
|||||||
"frontend:build:watch": "webpack --watch --progress",
|
"frontend:build:watch": "webpack --watch --progress",
|
||||||
"i18n:test": "./missing-translations.sh",
|
"i18n:test": "./missing-translations.sh",
|
||||||
"prerelease": "./is-clean.sh && npm run test",
|
"prerelease": "./is-clean.sh && npm run test",
|
||||||
"release": "standard-version -a",
|
"release": "./release.sh",
|
||||||
"release-test": "standard-version -a -t t",
|
|
||||||
"postrelease": "git push --follow-tags origin master",
|
"postrelease": "git push --follow-tags origin master",
|
||||||
"parse-changelog": "changelog-parser ./CHANGELOG.md > changelog.json"
|
"parse-changelog": "changelog-parser ./CHANGELOG.md > changelog.json"
|
||||||
},
|
},
|
||||||
|
|||||||
20
release.sh
Executable file
20
release.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2023 Sarah Vaupel <sarah.vaupel@uniworx.de>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "$(git rev-parse --abbrev-ref HEAD)" in
|
||||||
|
"master" | "main")
|
||||||
|
standard-version -a
|
||||||
|
;;
|
||||||
|
"test")
|
||||||
|
standard-version -a -t t
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Current branch not supported for release!"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in New Issue
Block a user