git config --global user.name ${{ secrets.PACKAGES_USER }}

git add package.json
echo "adding succeeded"
git commit -m "Bump version to $new_version"
echo "commiting succeeded"
git tag -a "v$new_version" -m "Release version $new_version"
echo "tagging succeeded"
git remote -v
git push main HEAD --tags
echo "pushing succeeded"
This commit is contained in:
miwr 2025-04-08 13:00:38 +02:00
parent 1360bf3044
commit 712f6cf083

View file

@ -17,8 +17,7 @@ jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json packag
# Optional: Commit and tag # Optional: Commit and tag
git config --global user.email pipeline@email.com git config --global user.name ${{ secrets.PACKAGES_USER }}
git config --global user.name pipeline
git add package.json git add package.json
echo "adding succeeded" echo "adding succeeded"
git commit -m "Bump version to $new_version" git commit -m "Bump version to $new_version"