Musical keyboard component written in React.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

publish.sh 991 B

123456789101112131415161718192021222324
  1. for branch in $(cat package.json | jq .publishing | jq -r keys[]) ; do
  2. git checkout $branch
  3. rawRepository=$(cat package.json | jq -r .publishing.$branch.repository)
  4. repository=$(cat package.json | jq -r .publishing.$branch.repository)
  5. currentRepository=$(cat package.json | jq -r .repository)
  6. if [ $repository = $currentRepository ]; then
  7. echo "$( jq --arg repository "$repository" '.repository = $repository' package.json )" > package.json
  8. echo "Publishing to primary repository: $repository"
  9. git push
  10. elif [ $rawRepository = 'null' ]; then
  11. echo "$branch has no repository"
  12. else
  13. echo "$branch is a mirror"
  14. echo "$( jq --arg repository "$repository" '.repository = $repository' package.json )" > package.json
  15. echo "Publishing to mirror repository: $repository"
  16. git push --mirror $currentRepository
  17. fi
  18. registry=$(cat package.json | jq -r .publishing.$branch.publishConfig.registry)
  19. echo $registry
  20. npm publish --registry=$registry
  21. done