Skip to content

Commit

Permalink
Merge pull request #281 from primer/shawnbot/more-ci-fixes
Browse files Browse the repository at this point in the history
Yet another hotfix for releases
  • Loading branch information
shawnbot authored Jul 25, 2017
2 parents 1284564 + f2abaed commit 9e3ee30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/try-publish
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
# pwd
package=$(jq .name package.json)
version=$(jq .version package.json)
package=$(jq -r .name package.json)
version=$(jq -r .version package.json)
published=$(npm info $package@$version version)
if [[ "$version" = "$published" ]]; then
echo "⚠️ $package@$version is already published!"
Expand Down

0 comments on commit 9e3ee30

Please sign in to comment.