mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
build(npm, shell): use the global standard-version
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# Usage: run on main branch or the patch branch
|
||||
#
|
||||
# Requires: Git, Node.js, NPX and RubyGems
|
||||
# Requires: Git, NPM and RubyGems
|
||||
|
||||
set -eu
|
||||
|
||||
@@ -36,7 +36,7 @@ FILES=(
|
||||
TOOLS=(
|
||||
"git"
|
||||
"npm"
|
||||
"npx"
|
||||
"standard-version"
|
||||
"gem"
|
||||
)
|
||||
|
||||
@@ -143,9 +143,9 @@ resume_config() {
|
||||
# auto-generate a new version number to the file 'package.json'
|
||||
standard_version() {
|
||||
if $opt_pre; then
|
||||
npx standard-version --prerelease rc
|
||||
standard-version --prerelease rc
|
||||
else
|
||||
npx standard-version
|
||||
standard-version
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user