Skip to content

Commit

Permalink
chore: fix for deploy step of build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Mar 17, 2020
1 parent 7fc6cd0 commit 33f5382
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if ($APPVEYOR_REPO_TAG -eq 'true') {
Write-Output "Running deploy (APPVEYOR_REPO_TAG) is true"
Write-Output "Running deploy (APPVEYOR_REPO_TAG) is $APPVEYOR_REPO_TAG"
npm run upload-binary
} else {
Write-Output "Skipping deploy (APPVEYOR_REPO_TAG) is false"
Write-Output "Skipping deploy (APPVEYOR_REPO_TAG) is $APPVEYOR_REPO_TAG"
}
1 change: 1 addition & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ echo "--> Releasing version ${VERSION}"

echo "--> Releasing artifacts"
echo " Publishing pact@${VERSION}..."
rm -rf native/target
npm publish dist --access public --tag latest
echo " done!"

Expand Down
1 change: 1 addition & 0 deletions scripts/publish_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ VERSION=$(grep '\"version\"' package.json | grep -E -o "([0-9\.]+(-[a-z\.0-9]+)?
NODE_VERSION=$(node --version)
echo "--> Releasing native library for version ${VERSION} and Node version ${NODE_VERSION}"

npm install node-pre-gyp node-pre-gyp-github
npm run upload-binary

0 comments on commit 33f5382

Please sign in to comment.