8000 add csp release script · GouTao/vue@a96a36c · GitHub
[go: up one dir, main page]

Skip to content

Commit a96a36c

Browse files
committed
add csp release script
1 parent 9e64586 commit a96a36c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

build/release-csp.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
# buid
9+
npm run build
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+
npm dist-tag add vue@$PLAIN_VERSION latest
23+
npm dist-tag add vue@CSP_VERSION csp

0 commit comments

Comments
 (0)
0