Skip to content

Commit

Permalink
chore(publish): check for npm login before allowing publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Mulfinger committed Aug 10, 2018
1 parent 731b4fb commit 7b13a1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions support/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Make sure user is logged in to npm
npm whoami || exit 1

# Extract the version from lerna.json (this was updated by `npm run release:prepare`)
VERSION=$(node --eval "console.log(require('./lerna.json').version);")

Expand Down

0 comments on commit 7b13a1a

Please sign in to comment.