Skip to content

Commit ac6f41e

Browse files
author
Simon Hofmann
committed
Refined deployment specifier
1 parent cf633d2 commit ac6f41e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

appveyor.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
image: Visual Studio 2017
44

5-
# Test against these versions of Io.js and Node.js.
6-
environment:
7-
matrix:
8-
# node.js
9-
- nodejs_version: "10"
10-
- nodejs_version: "11"
11-
- nodejs_version: "12"
5+
nodejs_version: "10"
126

137
cache:
148
- node_modules
@@ -38,9 +32,11 @@ test_script:
3832
- npm run test:it
3933

4034
on_success:
41-
- ps: if ($env:APPVEYOR_REPO_TAG_NAME) { echo $env:APPVEYOR_REPO_TAG_NAME }
42-
- ps: if ($env:nodejs_version = "12") { echo "node 12" }
43-
- ps: if ($env:APPVEYOR_REPO_TAG_NAME -and $env:nodejs_version = "12") { npm publish }
35+
- ps: |
36+
if ($env:APPVEYOR_REPO_TAG -eq "true -And $env:nodejs_version -eq "12)
37+
{
38+
npm publish
39+
}
4440
4541
build: off
4642
version: "{build}"

0 commit comments

Comments
 (0)