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:
8
.github/workflows/manual-release.yaml
vendored
8
.github/workflows/manual-release.yaml
vendored
@@ -138,7 +138,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Push changes to main
|
- 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
|
- name: Publish to NPM with stable tag
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user