File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 88event=$TRAVIS_EVENT_TYPE
99branch=$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
2113if [[ " $event " = " pull_request" ]]; then
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -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 )
77if [[ " $version " = " $published " ]]; then
88 echo " ⚠️ $package @$version is already published!"
99else
10- echo " 📦 npm publish : $package @$version "
10+ echo " 📦 Publishing : $package @$version (published: $published ) "
1111 npm publish $@
1212fi
You can’t perform that action at this time.
0 commit comments