Musical keyboard component written in React.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

29 lignes
1.2 KiB

  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 is a mirror"
  12. echo "$( jq --arg repository "$repository" '.repository = $repository' package.json )" > package.json
  13. echo "Publishing to mirror repository: $repository"
  14. git commit -am "Publish to $branch"
  15. git push --mirror $repository
  16. fi
  17. rawName=$(cat package.json | jq .publishing.$branch.name)
  18. if [ $rawName != 'null' ]; then
  19. name=$(cat package.json | jq -r .publishing.$branch.name)
  20. echo "$( jq --arg name "$name" '.name = $name' package.json )" > package.json
  21. fi
  22. registry=$(cat package.json | jq -r .publishing.$branch.publishConfig.registry)
  23. echo $registry
  24. npm publish --registry=$registry
  25. done