Extract and set form values through the DOM—no frameworks required! https://github.com/TheoryOfNekomata/formxtra
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

23 行
996 B

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