forked from kessler/node-regedit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
44 lines (34 loc) · 885 Bytes
/
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
43
44
init:
- git config --global core.autocrlf true
environment:
matrix:
- nodejs_version: "6"
- nodejs_version: "7"
configuration: "publish"
matrix:
fast_finish: false
platform:
- x86
- x64
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm i --ignore-scripts
before_build:
- node --version
- npm --version
build_script:
- npm run lint
- npm test
cache:
- node_modules -> package.json
- '%APPDATA%\npm-cache'
test: off
deploy_script:
- ps: |
if ($ENV:APPVEYOR_REPO_TAG_NAME -and $ENV:CONFIGURATION -eq "publish" -and $ENV:PLATFORM -eq "x64")
{
"//registry.npmjs.org/:_authToken=`$`{NPM_TOKEN`}" | Out-File (Join-Path $ENV:APPVEYOR_BUILD_FOLDER ".npmrc") -Encoding UTF8
iex "npm publish --access public"
}
- if defined appveyor_repo_tag_name npm run release
version: "{build}"