fix(ci): stash before checkout in merge step
This commit is contained in:
parent
a2f64e18f3
commit
ef7276a46a
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -152,6 +152,7 @@ jobs:
|
|||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
VERSION=$(jq -r '.version' package.json)
|
VERSION=$(jq -r '.version' package.json)
|
||||||
|
git stash --include-untracked || true
|
||||||
git checkout master
|
git checkout master
|
||||||
git reset --hard "v${VERSION}"
|
git reset --hard "v${VERSION}"
|
||||||
git push -f origin master
|
git push -f origin master
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user