From e1d173b59dae7e79df7a5ea06621dd40b66ac54d Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sat, 3 Oct 2020 17:02:17 +0800 Subject: [PATCH] Fix publish script --- publish.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index e868aab..3c59be8 100755 --- a/publish.sh +++ b/publish.sh @@ -15,7 +15,8 @@ for branch in $(cat package.json | jq .publishing | jq -r keys[]) ; do echo "$branch is a mirror" echo "$( jq --arg repository "$repository" '.repository = $repository' package.json )" > package.json echo "Publishing to mirror repository: $repository" - git push --mirror $currentRepository + git commit -am "Publish to $branch" + git push --mirror $repository fi registry=$(cat package.json | jq -r .publishing.$branch.publishConfig.registry)