瀏覽代碼

Fix publish script

master
TheoryOfNekomata 4 年之前
父節點
當前提交
e1d173b59d
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      publish.sh

+ 2
- 1
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)


Loading…
取消
儲存