Skip to content

Commit 0a6f07f

Browse files
authored
Merge pull request #286 from primer/master
Merge CI release fixes from master to dev
2 parents e30626a + 9e3ee30 commit 0a6f07f

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

script/cibuild

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ args=$@
88
event=$TRAVIS_EVENT_TYPE
99
branch=$TRAVIS_BRANCH
1010

11-
echo "🐛 script/cibuild"
12-
(
13-
echo "TRAVIS_EVENT_TYPE,$TRAVIS_EVENT_TYPE"
14-
echo "TRAVIS_BRANCH,$TRAVIS_BRANCH"
15-
echo "TRAVIS_PULL_REQUEST,$TRAVIS_PULL_REQUEST"
16-
echo "TRAVIS_PULL_REQUEST_BRANCH,$TRAVIS_PULL_REQUEST_BRANCH"
17-
) | column -t -s=,
18-
1911
# the presence of $TRAVIS_PULL_REQUEST_BRANCH tells us
2012
# whether this is a pull request
2113
if [[ "$event" = "pull_request" ]]; then

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")
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)