Skip to content

Commit

Permalink
fix: prevent node-gyp rebuild on fresh install
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Mar 14, 2024
1 parent 7ff9ad6 commit c24c638
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/ci/lib/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ echo " Publishing pact-core@${VERSION}..."
if [[ ${DRY_RUN:-} == 'true' ]]; then
echo "publishing in dry run mode"
npm publish --access-public --dry-run
else
else
echo "--> Preparing npmrc file"
"$SCRIPT_DIR"/create_npmrc_file.sh
echo "--> Removing binding.gyp to prevent rebuild. See https://github.com/npm/cli/issues/5234#issuecomment-1291139150"
rm "${SCRIPT_DIR}/../../../binding.gyp"
npm publish --access public --tag latest
fi
echo " done!"

0 comments on commit c24c638

Please sign in to comment.