mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-12 23:35:50 +00:00
release script
This commit is contained in:
parent
5034464ffd
commit
91123e27a3
25
scripts/release.sh
Executable file
25
scripts/release.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# find directories
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
PROJECT_DIR="${SCRIPT_DIR}/../"
|
||||
FRONTEND_DIR="${PROJECT_DIR}/frontend/"
|
||||
BACKEND_DIR="${PROJECT_DIR}/backend/"
|
||||
|
||||
# navigate to project directory
|
||||
cd ${PROJECT_DIR}
|
||||
|
||||
# ask for new version
|
||||
yarn version --no-git-tag-version --no-commit-hooks --no-commit
|
||||
|
||||
# find new version
|
||||
VERSION="$(node -p -e "require('./package.json').version")"
|
||||
|
||||
# update version in sub projects
|
||||
cd ${FRONTEND_DIR}
|
||||
yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version ${VERSION}
|
||||
cd ${BACKEND_DIR}
|
||||
yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version ${VERSION}
|
||||
|
||||
# generate changelog
|
||||
auto-changelog --latest-version ${VERSION}
|
||||
Loading…
x
Reference in New Issue
Block a user