Skip to content

Commit

Permalink
Merge branch 'master' into wyszynski/database-emulator-v4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwski committed Jul 30, 2019
2 parents ae26232 + ffcdd55 commit c50cd0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ cd "${REPOSITORY_NAME}"
echo "Cloned repository."

echo "Making sure there is a changelog..."
if [ ! -s changelog.txt ]; then
echo "changelog.txt is empty. aborting."
if [ ! -s CHANGELOG.md ]; then
echo "CHANGELOG.md is empty. aborting."
exit 1
fi
echo "Made sure there is a changelog."
Expand All @@ -92,17 +92,17 @@ RELEASE_NOTES_FILE=$(mktemp)
echo "[DEBUG] ${RELEASE_NOTES_FILE}"
echo "v${NEW_VERSION}" >> "${RELEASE_NOTES_FILE}"
echo "" >> "${RELEASE_NOTES_FILE}"
cat changelog.txt >> "${RELEASE_NOTES_FILE}"
cat CHANGELOG.md >> "${RELEASE_NOTES_FILE}"
echo "Made the release notes."

echo "Publishing to npm..."
npm publish
echo "Published to npm."

echo "Cleaning up release notes..."
rm changelog.txt
touch changelog.txt
git commit -m "[firebase-release] Removed change log and reset repo after ${NEW_VERSION} release" changelog.txt
rm CHANGELOG.md
touch CHANGELOG.md
git commit -m "[firebase-release] Removed change log and reset repo after ${NEW_VERSION} release" CHANGELOG.md
echo "Cleaned up release notes."

echo "Pushing to GitHub..."
Expand Down

0 comments on commit c50cd0c

Please sign in to comment.