Skip to content

Commit 7cde8f8

Browse files
authored
chore: fix dirty repo preventing tag bump
1 parent a522d65 commit 7cde8f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484
const semver = require('semver')
8585
const { version } = require('./package.json')
8686
return semver.major(version)
87+
88+
- name: 🧹 Clean repo
89+
run: git checkout . -xdf && git reset --hard HEAD && git pull
8790

8891
- name: 📋 Update tags
89-
run: git fetch --tags && git pull && git tag --force v${{ steps.version.outputs.result }} && git push --force --tags
92+
run: git tag --force v${{ steps.version.outputs.result }} && git push --force --tags

0 commit comments

Comments
 (0)