Skip to content

Commit d4185e9

Browse files
authored
Merge branch 'master' into contribution-guidelines
2 parents e0ba7e8 + 9e3ee30 commit d4185e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script/try-publish

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22
set -e
33
# pwd
4-
package=$(jq .name package.json)
5-
version=$(jq .version package.json)
6-
published=$(npm info "$package@$version version")
4+
package=$(jq -r .name package.json)
5+
version=$(jq -r .version package.json)
6+
published=$(npm info $package@$version version)
77
if [[ "$version" = "$published" ]]; then
88
echo "⚠️ $package@$version is already published!"
99
else
10-
echo "📦 npm publish: $package@$version"
10+
echo "📦 Publishing: $package@$version (published: $published)"
1111
npm publish $@
1212
fi

0 commit comments

Comments
 (0)