mirror of
https://github.com/expo/expo-github-action.git
synced 2026-11-15 17:32:45 -10:00
chore: fix dirty repo preventing tag bump
This commit is contained in:
1 parent
a522d656e4
commit
7cde8f899a
1 file changed
+4
-1
@@ -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
|
||||
Reference in new issue
Block a user