Skip to content

Commit

Permalink
wip in pre/post publish scripts, do nothing on TravisCI env.
Browse files Browse the repository at this point in the history
npm install is invoking the pre/post publish script
  • Loading branch information
bcowgill committed Mar 18, 2021
1 parent ad3404a commit 2d6674e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions scripts/post-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ CMD=post-publish.sh
PKG=$NPMPKG
NPM=pnpm

# TravisCI this script is invoked when the project installs. Perhaps it should all be prepublishOnly!
if [ "$CI" == 'true' ]; then
exit
fi

# terminate on first error
set -e

Expand Down
7 changes: 4 additions & 3 deletions scripts/pre-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ CMD=pre-publish.sh
PKG=$NPMPKG
NPM=pnpm

echo === ENVIRONMENT ====
echo PATH=$PATH
set
# TravisCI this script is invoked when the project installs. Perhaps it should all be prepublishOnly!
if [ "$CI" == 'true' ]; then
exit
fi

# terminate on first error
set -e
Expand Down

0 comments on commit 2d6674e

Please sign in to comment.