-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
42 lines (36 loc) · 1.01 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '{branch} #{build}'
image: Visual Studio 2017
platform: x64
configuration: Release
environment:
matrix:
- nodejs_version: "10"
npm_auth_token:
secure: pBJzpHmM4Z+rgfqxGj63yLXIKLDc5AjV/bexQ/CjpUfKuoRML71pcYtS/CkqAxhn
install:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- where cl
- ps: Install-Product node $env:nodejs_version x64
- node --version
- npm --version
build_script:
- npm ci
- npm run -s compile:win32
- npm run -s package
- npm run -s citest
artifacts:
- path: windows\dcraw.exe
name: dcraw
deploy_script:
- ps: |
cd dist
dir
if ($ENV:APPVEYOR_REPO_TAG -eq "true")
{
echo "publishing to npm on a tagged build"
"//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII
cmd /c "npm whoami 2>&1"
cmd /c "npm publish 2>&1"
} else {
echo "skipping publishing due to lack of a tag"
}