mirror of
https://github.com/danbulant/markdown-wasm
synced 2026-05-24 12:35:34 +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
|
-patch Bump patch version. e.g. 1.2.3 => 1.2.4
|
||||||
(nothing) Leave version in package.json unchanged ($PKG_VERSION)
|
(nothing) Leave version in package.json unchanged ($PKG_VERSION)
|
||||||
_MESSAGE_
|
_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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue