-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,26 +25,29 @@ install: | |
- where npm | ||
- where node | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- 'npm install -g npm@latest' | ||
- 'npm install -g npm@latest prebuildify node-gyp' | ||
|
||
build: off | ||
|
||
artifacts: | ||
- path: 'build/stage/**/bcrypt*.tar.gz' | ||
- path: './bcrypt*.tgz' | ||
|
||
test_script: | ||
- node --version | ||
- npm --version | ||
- npm install --build-from-source | ||
- npm test | ||
|
||
after_test: | ||
- .\node_modules\.bin\node-pre-gyp package | ||
- npm run build | ||
- npm run pack | ||
|
||
on_success: | ||
- ps: > | ||
if ($env:NODE_PRE_GYP_GITHUB_TOKEN -ne $null -and $env:APPVEYOR_REPO_TAG_NAME -match '^v(0|[1-9]+)\.(0|[1-9]+)\.(0|[1-9]+)(-\w)?$') { | ||
echo "Publishing $env:APPVEYOR_REPO_TAG_NAME" | ||
npm install [email protected] | ||
./node_modules/.bin/node-pre-gyp-github publish --release | ||
## TODO CONFIGURE FOR GITHUB NPM REGISTRY ### | ||
## See https://docs.github.com/en/actions/guides/publishing-nodejs-packages#publishing-packages-to-github-packages | ||
npm publish | ||
} | ||