forked from kemitix/git-next
chore: justfile publish revert to dev branch when complete
This commit is contained in:
parent
dd0a1ca41f
commit
03ae9153b4
1 changed files with 2 additions and 1 deletions
3
justfile
3
justfile
|
@ -48,7 +48,7 @@ publish version:
|
||||||
else
|
else
|
||||||
echo "Worktree is Dirty - aborting" ; exit
|
echo "Worktree is Dirty - aborting" ; exit
|
||||||
fi
|
fi
|
||||||
git co v{{version}}
|
git checkout v{{version}}
|
||||||
ORDER=$(cargo publish-workspace --target-version {{version}} --crate-prefix git-next --show-order 2>/dev/null | cut -d\ -f2-)
|
ORDER=$(cargo publish-workspace --target-version {{version}} --crate-prefix git-next --show-order 2>/dev/null | cut -d\ -f2-)
|
||||||
echo "Publishing crates in order: ${ORDER}"
|
echo "Publishing crates in order: ${ORDER}"
|
||||||
# INFO: Why not use publish-workspace to publish? It doesn't support when crates-io registry is replaced
|
# INFO: Why not use publish-workspace to publish? It doesn't support when crates-io registry is replaced
|
||||||
|
@ -60,3 +60,4 @@ publish version:
|
||||||
echo "======================================"
|
echo "======================================"
|
||||||
done
|
done
|
||||||
echo "All crates published"
|
echo "All crates published"
|
||||||
|
git checkout dev
|
||||||
|
|
Loading…
Reference in a new issue