Skip to content

Commit

Permalink
Add publish step to versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Jan 28, 2022
1 parent fdc0648 commit 87fd84e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/postversion.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR > /dev/null
set -e

# check that that origin points to the sinonjs/fake-timers repo
git remote -v | grep 'origin.*sinonjs/fake-timers.*push' > /dev/null
Expand All @@ -11,3 +12,4 @@ if [[ $? != 0 ]]; then
fi

git push --follow-tags origin
npm publish

0 comments on commit 87fd84e

Please sign in to comment.