chore: justfile publish revert to dev branch when complete

This commit is contained in:
Paul Campbell 2024-07-29 10:33:03 +01:00
parent dd0a1ca41f
commit 03ae9153b4

View file

@ -48,7 +48,7 @@ publish version:
else
echo "Worktree is Dirty - aborting" ; exit
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-)
echo "Publishing crates in order: ${ORDER}"
# 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 "======================================"
done
echo "All crates published"
git checkout dev