fix: handle protected branch in manual release workflow

- Allow workflow to continue even if push to main fails
- This is expected behavior with protected branches
- NPM publishing and GitHub releases will still work
This commit is contained in:
Brian Madison
2025-08-16 20:44:00 -05:00
parent 1772a30368
commit 39437e9268

View File

@@ -138,7 +138,13 @@ jobs:
fi
- name: Push changes to main
run: git push origin HEAD:main
run: |
if git push origin HEAD:main 2>/dev/null; then
echo "✅ Successfully pushed to main branch"
else
echo "⚠️ Could not push to main (protected branch). This is expected."
echo "📝 Version bump and tag were created successfully."
fi
- name: Publish to NPM with stable tag
env: