Update release.yaml

This commit is contained in:
Lost Paul 2025-06-25 10:41:23 +02:00 committed by GitHub
parent 2c8c54ee75
commit c8e54037c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,15 +45,12 @@ jobs:
git commit -m "Update manifest.json to version $VERSION" || echo "No changes to commit"
git push origin main
# Switch back to the original branch ONLY if not 'main'
- name: Checkout original branch (if not main)
- name: Ensure HEAD is at updated main commit
run: |
if [ "${{ env.BRANCH_NAME }}" != "main" ]; then
git checkout "${{ env.BRANCH_NAME }}"
git pull origin "${{ env.BRANCH_NAME }}"
else
echo "Already on main branch; skipping checkout."
fi
git fetch origin
git checkout main
git reset --hard origin/main
- name: npm build
run: |