UNPKG

921 BYAMLView Raw
1environment:
2 matrix:
3 - nodejs_version: "14"
4 platform: x64
5 - nodejs_version: "14"
6 platform: x86
7 - nodejs_version: "16"
8 platform: x64
9 - nodejs_version: "16"
10 platform: x86
11 - nodejs_version: "18"
12 platform: x64
13
14install:
15 - where npm
16 - where node
17 - ps: Install-Product node $env:nodejs_version $env:platform
18
19build: off
20
21artifacts:
22 - path: 'build/stage/**/bcrypt*.tar.gz'
23
24test_script:
25 - node --version
26 - npm --version
27 - npm test
28
29after_test:
30 - .\node_modules\.bin\node-pre-gyp package
31
32on_success:
33 - ps: >
34 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)?$') {
35 echo "Publishing $env:APPVEYOR_REPO_TAG_NAME"
36 npm install node-pre-gyp-github@1.4.3
37 ./node_modules/.bin/node-pre-gyp-github publish --release
38 }
39
40
\No newline at end of file