Musical keyboard component written in React.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
1.2 KiB

  1. defaultBranch=master
  2. for branch in $(cat package.json | jq .publishing | jq -r keys[]) ; do
  3. rawRepository=$(cat package.json | jq -r .publishing.$branch.repository)
  4. repository=$(cat package.json | jq -r .publishing.$branch.repository)
  5. defaultRepository=$(cat package.json | jq -r .publishing.$defaultBranch.repository)
  6. if [ $repository = $defaultRepository ]; then
  7. echo "$( jq --arg repository "$repository" '.repository = $repository' package.json )" > package.json
  8. echo "Publishing to primary repository: $repository"
  9. elif [ $rawRepository != 'null' ]; then
  10. echo "$branch is a mirror"
  11. echo "$( jq --arg repository "$repository" '.repository = $repository' package.json )" > package.json
  12. echo "Publishing to mirror repository: $repository"
  13. fi
  14. rawName=$(cat package.json | jq .publishing.$branch.name)
  15. if [ $rawName != 'null' ]; then
  16. name=$(cat package.json | jq -r .publishing.$branch.name)
  17. echo "$( jq --arg name "$name" '.name = $name' package.json )" > package.json
  18. fi
  19. registry=$(cat package.json | jq -r .publishing.$branch.publishConfig.registry)
  20. echo "Publishing to package repository: $registry"
  21. npm publish --registry=$registry --access public
  22. git reset --hard
  23. done