This commit is contained in:
parent
44a137dd63
commit
ed5b833f39
1 changed files with 2 additions and 2 deletions
|
@ -55,11 +55,11 @@ jobs:
|
|||
new_patch=$((patch + 1))
|
||||
new_version="$major.$minor.$new_patch"
|
||||
echo "New version: $new_version"
|
||||
jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json package.json
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "GitHub Actions Bot"
|
||||
git checkout -- package-lock.json package.json
|
||||
# git checkout -- package-lock.json package.json
|
||||
git pull
|
||||
jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json package.json
|
||||
git add .
|
||||
git commit -m "Automated update by GitHub Actions"
|
||||
git push origin HEAD:${{ github.ref_name }}
|
||||
|
|
Loading…
Reference in a new issue