0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2025-01-11 04:55:09 +01:00
2015-07-15 15:06:18 +02:00

18 lines
377 B
Bash
Executable File

#!/bin/bash
set -e
LAST_TAG=$(git describe $(git rev-list --tags --max-count=1))
TAG_DIFF=$(git diff $LAST_TAG -- packages/babel-cli/)
if [ -n "$TAG_DIFF" ]; then
echo "Changes detected to babel-cli since last tag, publishing new version."
cd ../packages
node build-cli.js
cd babel-cli
npm publish
else
echo "No changes detected to babel-cli since last tag"
fi