From 39437e92681334cbb7e4b2211084e37b7a27fe0d Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Sat, 16 Aug 2025 20:44:00 -0500 Subject: [PATCH] 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 --- .github/workflows/manual-release.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual-release.yaml b/.github/workflows/manual-release.yaml index cdce467f..fe131f89 100644 --- a/.github/workflows/manual-release.yaml +++ b/.github/workflows/manual-release.yaml @@ -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: