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.
|
- defaultBranch=master
-
- for branch in $(cat package.json | jq .publishing | jq -r keys[]) ; do
- git checkout $branch
-
- rawRepository=$(cat package.json | jq -r .publishing.$branch.repository)
- repository=$(cat package.json | jq -r .publishing.$branch.repository)
- defaultRepository=$(cat package.json | jq -r .publishing.$defaultBranch.repository)
-
- if [ $repository = $defaultRepository ]; then
- echo "$( jq --arg repository "$repository" '.repository = $repository' package.json )" > package.json
- echo "Publishing to primary repository: $repository"
- git push
- git reset --hard
- elif [ $rawRepository != 'null' ]; then
- echo "$branch is a mirror"
- echo "$( jq --arg repository "$repository" '.repository = $repository' package.json )" > package.json
- echo "Publishing to mirror repository: $repository"
- git commit -am "Publish to $branch"
- git push --mirror $repository
- git reset --hard
- fi
-
- rawName=$(cat package.json | jq .publishing.$branch.name)
- if [ $rawName != 'null' ]; then
- name=$(cat package.json | jq -r .publishing.$branch.name)
- echo "$( jq --arg name "$name" '.name = $name' package.json )" > package.json
- fi
- registry=$(cat package.json | jq -r .publishing.$branch.publishConfig.registry)
- echo "Publishing to package repository: $registry"
- npm publish --registry=$registry
- done
-
- git checkout $defaultBranch
|