mirror of
https://github.com/danbulant/markdown-wasm
synced 2026-05-19 04:18:38 +00:00
misc/dist.sh: show current version published on npm when asking for help
This commit is contained in:
parent
0c81db408f
commit
2da75dd2ff
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,10 @@ Usage: $0 [-major | -minor | -patch]
|
|||
-patch Bump patch version. e.g. 1.2.3 => 1.2.4
|
||||
(nothing) Leave version in package.json unchanged ($PKG_VERSION)
|
||||
_MESSAGE_
|
||||
echo -n "Current version on NPM: ••• "
|
||||
NPM_VERSION=$(npm show markdown-wasm version)
|
||||
echo -en "\rCurrent version on NPM: ${NPM_VERSION}"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue