forked from mdbootstrap/perfect-scrollbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release
28 lines (21 loc) · 664 Bytes
/
release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
# Check updated version
if git --no-pager diff --exit-code package.json; then
echo 'No version update'
exit 1
fi
# Update lock and rebuild
npm install
npm run build
# Update gh-pages
cp css/perfect-scrollbar.css dist/perfect-scrollbar.min.js docs/
# Create commit message
version=$(node -e "console.log(require('./package.json').version)")
message="v$version
Please refer to Releases for changelog.
https:/utatti/perfect-scrollbar/releases"
# Commit, tag, and show detail and file names
git commit . -m "$message"
git show
git tag $version
git --no-pager show --pretty=format:'%Cred%h %Cgreen%an %Creset%s' --name-status