Update the bump tool
This commit is contained in:
parent
834de0f02c
commit
fad8a23b87
1 changed files with 1 additions and 10 deletions
|
@ -21,13 +21,11 @@ manual_release=false
|
|||
|
||||
ASSETS=(
|
||||
"_sass/jekyll-theme-chirpy.scss"
|
||||
"assets/js/.copyright"
|
||||
"assets/js/_copyright"
|
||||
)
|
||||
|
||||
GEM_SPEC="jekyll-theme-chirpy.gemspec"
|
||||
|
||||
GEM_LOCK="Gemfile.lock"
|
||||
|
||||
NODE_META="package.json"
|
||||
|
||||
_check_src() {
|
||||
|
@ -75,17 +73,10 @@ _bump_node() {
|
|||
$NODE_META
|
||||
}
|
||||
|
||||
_bump_gemlock() {
|
||||
sed -i \
|
||||
"s/jekyll-theme-chirpy ([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/jekyll-theme-chirpy ($1/" \
|
||||
$GEM_LOCK
|
||||
}
|
||||
|
||||
bump() {
|
||||
_bump_assets "$1"
|
||||
_bump_gemspec "$1"
|
||||
_bump_node "$1"
|
||||
_bump_gemlock "$1"
|
||||
|
||||
if [[ -n $(git status . -s) ]]; then
|
||||
git add .
|
||||
|
|
Loading…
Reference in a new issue