forked from guibranco/BancosBrasileiros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (37 loc) · 1.03 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
version: 4.0.{build}
skip_tags: true
skip_branch_with_pr: true
skip_commits:
message: /(Create|Update).*\.(png|jpg|jpeg|bmp|gif|md)/
branches:
only:
- master
environment:
nodejs_version: 14.3.0
install:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- ps: Install-Product node $env:nodejs_version
- ps: >-
npm install --loglevel=error
"//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII
build_script:
- mkdir -p dist
- copy README.md dist\
- copy package.json dist\
- copy data\bancos.json dist\
- cd dist
- git config user.email "[email protected]"
- git config user.name "AppVeyor"
- npm version %APPVEYOR_BUILD_VERSION% -m 'v%APPVEYOR_BUILD_VERSION%'
- npm publish
- cd ..
- cmd: nuget pack BancosBrasileiros.nuspec -Version %APPVEYOR_BUILD_VERSION%
artifacts:
- path: '**\*nupkg'
name: Package
deploy:
- provider: Environment
name: NuGet
on:
branch: master
artifact: Package