Skip to content
Snippets Groups Projects
Commit ff13b8df authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] #952 Make releases locally (see also commit 26a99e11)

parent f1dbd0a4
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ REMOTE_TAG=`git ls-remote --tags origin | grep -Fo "$TAG"` ...@@ -25,7 +25,7 @@ REMOTE_TAG=`git ls-remote --tags origin | grep -Fo "$TAG"`
if [[ -z $REMOTE_TAG ]]; then if [[ -z $REMOTE_TAG ]]; then
echo "The '$TAG' tag does not exist on 'origin' repository. Use command ./release/new_version.sh to create a new version and use 'git push origin --tags' to share the tag." echo "The '$TAG' tag does not exist on 'origin' repository. Use command ./release/new_version.sh to create a new version and use 'git push origin --tags' to share the tag."
# exit 2 exit 2
fi fi
echo "Remote tag: $REMOTE_TAG" echo "Remote tag: $REMOTE_TAG"
......
#!/bin/bash #!/bin/bash
### Control that the script is run on `dev` branch
branch=`git rev-parse --abbrev-ref HEAD`
if [[ ! "$branch" = "dev" ]];
then
echo ">> This script must be run under \`dev\` branch"
exit
fi
### Releasing ### Releasing
current=`grep -P "version\": \"\d+.\d+.\d+(\w*)" package.json | grep -oP "\d+.\d+.\d+(\w*)"` current=`grep -P "version\": \"\d+.\d+.\d+(\w*)" package.json | grep -oP "\d+.\d+.\d+(\w*)"`
echo "Current version: $current" echo "Current version: $current"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment