Skip to content
Snippets Groups Projects
Commit 71b6f72c authored by julenalbi's avatar julenalbi
Browse files

stage proper file

parent 41f4ba9f
Branches
No related tags found
No related merge requests found
if git branch -a | grep -q main
then
echo "main";
else
echo "master";
fi
...@@ -15,10 +15,10 @@ update: ...@@ -15,10 +15,10 @@ update:
- git checkout $current_version - git checkout $current_version
- git pull - git pull
- node package-version-updater/versionUpdater.js -v $current_version - node package-version-updater/versionUpdater.js -v $current_version
- git add package.json - bash package-version-updater/stage_file.sh
- git commit -m "Dependencies updated to $current_version" - git commit -m "Dependencies updated to $current_version"
- npm version --allow-same-version $current_version - npm version --allow-same-version $current_version
- branch=`bash get_principal_branch.sh` - branch=`bash package-version-updater/get_principal_branch.sh`
- echo ${branch} - echo ${branch}
- git checkout ${branch} - git checkout ${branch}
- git pull - git pull
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment