Skip to content

Commit 6b73e39

Browse files
lollipop-onlclaude
andcommitted
fix: stop pushing version commit to main in release workflow
Push only the tag instead of creating a version commit and pushing it to main. This avoids repository ruleset violations (GH013) that block direct pushes to protected branches. The version is already derived from tags via git describe, so the commit is unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aade44a commit 6b73e39

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,10 @@ jobs:
142142
fi
143143
npm publish $flags
144144
145-
- name: Configure git
145+
- name: Push tag
146146
if: inputs.environment != 'dry-run'
147147
run: |
148-
git config user.name "github-actions[bot]"
149-
git config user.email "github-actions[bot]@users.noreply.github.com"
150-
151-
- name: Push version commit and tag
152-
if: inputs.environment != 'dry-run'
153-
env:
154-
REF_NAME: ${{ github.ref_name }}
155-
run: |
156-
git add apps/cli/package.json
157-
git commit -m "${NEW_TAG}"
158148
git tag "${NEW_TAG}"
159-
git push origin "HEAD:refs/heads/${REF_NAME}"
160149
git push origin "${NEW_TAG}"
161150
162151
- name: Create GitHub release

0 commit comments

Comments
 (0)