We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68620d1 commit 0a0b1f4Copy full SHA for 0a0b1f4
release.sh
@@ -18,9 +18,27 @@ then
18
# commit
19
git add -A
20
git commit -m "Build for $VERSION"
21
- npm version $VERSION --message "Upgrade to $VERSION"
+ npm version $VERSION -m "Upgrade to $VERSION"
22
23
# publish
24
- git push
25
npm publish
+ echo "Publish $VERSION successfully!"
26
+
27
+ read -p "Upgrade GitHub Pages? (y/n)" -n 1 -r
28
+ echo # (optional) move to a new line
29
+ if [[ $REPLY =~ ^[Yy]$ ]]
30
+ then
31
+ echo "Upgrade GitHub Pages ..."
32
+ # upgrade GitHub Pages
33
+ git checkout gh-pages
34
+ npm install vue-infinite-loading@$VERSION --save
35
+ VERSION=$VERSION npm run build
36
+ git add -A
37
+ git commit -m "Upgrade GitHub Pages to $VERSION"
38
+ git checkout master
39
+ fi
40
41
+ # push
42
+ git push
43
+ echo "Done!"
44
fi
0 commit comments