github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/public/libs/vue-1.0.24/build/release-csp.sh (about)

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