Musical keyboard component written in React.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

publish.sh 1.0 KiB

12345678910111213141516171819202122232425
  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 commit -am "Publish to $branch"
  17. git push --mirror $repository
  18. fi
  19. registry=$(cat package.json | jq -r .publishing.$branch.publishConfig.registry)
  20. echo $registry
  21. npm publish --registry=$registry
  22. done