Skip to content

Commit d85ad90

Browse files
committed
Update git push command to specify the branch
1 parent 8d7521a commit d85ad90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
npm version $VERSION --no-git-tag-version
2626
- name: Commit package.json changes
2727
run: |
28+
git checkout -b temp-branch
2829
git add package.json
2930
git commit -m "Bump version to ${GITHUB_REF#refs/tags/v}"
30-
git push
31+
git push origin HEAD:main
3132
- run: npm ci
3233
- run: npm run build
3334
- run: npm publish

0 commit comments

Comments
 (0)