diff --git a/.github/workflows/increase-version.yml b/.github/workflows/increase-version.yml index bd6ce3f..33581c9 100644 --- a/.github/workflows/increase-version.yml +++ b/.github/workflows/increase-version.yml @@ -24,6 +24,11 @@ jobs: npm version patch --no-git-tag-version git add package.json package-lock.json git commit -m "chore: bump version [skip ci]" || echo "No changes to commit" + + # Pull the latest changes from the remote main branch before pushing + git pull origin main --rebase + + # Push changes to remote main branch git push origin main - name: Trigger second pipeline