2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-12 01:32:26 +03:00
Files
vue2-datepicker/build/release.sh
T
mengxiong10 1325d41225 vue3 base
2020-11-11 16:56:17 +08:00

28 lines
418 B
Bash

#!/bin/bash
set -e
if [[ -z $1 ]]; then
echo "Enter new version: "
read -r VERSION
else
VERSION=$1
fi
read -p "Releasing $VERSION - are you sure? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Releasing $VERSION ..."
# build
VERSION=$VERSION npm run build
npm version $VERSION --message "$VERSION"
# publish
git push
git push origin refs/tags/v$VERSION
npm publish --tag next
fi