Skip to content

Commit

Permalink
chore: fix dirty repo preventing tag bump
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric authored Mar 4, 2022
1 parent a522d65 commit 7cde8f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7cde8f8

Please sign in to comment.