-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Cuneo
committed
Jun 29, 2018
1 parent
11a1629
commit 48d00ee
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
if [ "$0" = "master" ]; then tag='release'; else tag='next'; fi | ||
pkgver=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') | ||
match=$(npm view express-locator versions | grep -Eo '([0-9]*\.[0-9]*\.[0-9])' | grep -Eo "$pkgver |$pkgver^") | ||
match=$(npm view redux-methods versions | grep -Eo '([0-9]*\.[0-9]*\.[0-9])' | grep -Eo "$pkgver |$pkgver^") | ||
if [ -z "$match" ]; then npm publish --tag $tag --ignore-scripts; else echo 'Version already published'; fi |