-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathappveyor.yml
More file actions
34 lines (29 loc) · 743 Bytes
/
Copy pathappveyor.yml
File metadata and controls
34 lines (29 loc) · 743 Bytes
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
version: 1.0.{build}
platform: x64
# Do not build on tags (GitHub and BitBucket)
skip_tags: false
deploy: off
environment:
NPM_TOKEN:
secure: 6AWXn+nBEnYizdUZixB8ATA3JPsV1SqmHm/tsuzTn595i9d4IBZatOgJP0CT/iD5
install:
- ps: >-
Install-Product node 8.1 x64
node --version
npm --version
yarn --version
cache:
- "%LOCALAPPDATA%\\Yarn"
- node_modules
build_script:
- cmd: >-
yarn install --frozen-lockfile
yarn run build
deploy_script:
- ps: |
if ($ENV:APPVEYOR_REPO_TAG -eq $true)
{
"//registry.npmjs.org/:_authToken=`$`{NPM_TOKEN`}" | Out-File (Join-Path $ENV:APPVEYOR_BUILD_FOLDER ".npmrc") -Encoding UTF8
iex "npm pack"
iex "npm publish"
}