Skip to content

Commit

Permalink
fix: release action script
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbousquet committed Sep 27, 2024
1 parent eddbd21 commit 159401c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions release-actions.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash
set -e

npmlogin=`npm whoami`
if [ -z "$npmlogin" ] ; then echo "your are not logged on npm"; exit -1; else echo "logged as "$npmlogin ; fi

usage(){
echo "Usage: ./release.sh -version='1.0.0' -ref_branch=develop --stage=beta|rc|stable"
echo " -version arlas-web-core version release,level of evolution"
Expand Down Expand Up @@ -42,6 +39,8 @@ releaseProd(){

echo "=> Tag version $VERSION"
git add .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
commit_message_release="Release prod version $VERSION"
git tag -a v"$VERSION" -m "$commit_message_release"
git push origin v"$VERSION"
Expand Down

0 comments on commit 159401c

Please sign in to comment.