chore: fix dirty repo preventing tag bump

This commit is contained in:
Cedric van Putten authored and GitHub committed 2022-03-04 09:15:01 -08:00
1 parent a522d656e4
commit 7cde8f899a
1 file changed
+4 -1
+4 -1
View File
@@ -84,6 +84,9 @@ jobs:
const semver = require('semver')
const { version } = require('./package.json')
return semver.major(version)
- name: 🧹 Clean repo
run: git checkout . -xdf && git reset --hard HEAD && git pull
- name: 📋 Update tags
run: git fetch --tags && git pull && git tag --force v${{ steps.version.outputs.result }} && git push --force --tags
run: git tag --force v${{ steps.version.outputs.result }} && git push --force --tags