release-csp.sh 574 B

1234567891011121314151617181920212223242526
  1. # get versions
  2. PLAIN_VERSION=`npm version | grep vue | sed -e 's/[^0-9.]//g'`
  3. CSP_VERSION=$PLAIN_VERSION-csp
  4. # update package.json
  5. sed -i '' -e 's/\("version"\: "[0-9]*\.[0-9]*\.[0-9]*\)"/\1-csp"/' package.json
  6. # test + build
  7. npm test
  8. # push to csp branch on github
  9. git add -A .
  10. git commit -m "[build] $CSP_VERSION"
  11. git push -f
  12. # push tag
  13. git tag v$CSP_VERSION
  14. git push origin v$CSP_VERSION
  15. # publish to npm and update dist tags
  16. npm publish
  17. sleep 1
  18. npm dist-tag add vue@$CSP_VERSION csp
  19. npm dist-tag add vue@$PLAIN_VERSION latest
  20. sleep 1
  21. npm view vue version dist-tags