Skip to content

Commit 618b672

Browse files
Add step to reset local changes before pulling
1 parent 09fea20 commit 618b672

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
run: pnpm run changeset:version
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Reset any local changes before pulling
38+
run: |
39+
git reset --hard HEAD
40+
git clean -fd
3741
- name: Pull latest main
3842
run: git pull --rebase origin main
3943
- name: Push changes

0 commit comments

Comments
 (0)