Skip to content

Commit a35a40f

Browse files
author
Simon Hofmann
committed
Switched to powershell for on_success scripts
1 parent b0f0630 commit a35a40f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ test_script:
3838
- npm run test:it
3939

4040
on_success:
41-
- sh: if [ ${APPVEYOR_REPO_TAG_NAME+x} ] ; then echo $APPVEYOR_REPO_TAG_NAME; else echo "No tag"; fi
42-
- sh: if [ "${nodejs_version+x}" = "12" ]; then echo "node 12"; else echo "node != 12"; fi
43-
- sh: if [ ${APPVEYOR_REPO_TAG_NAME+x} ] && [ "${nodejs_version+x}" = "12" ]; then npm publish; fi
41+
- ps: if ($env:APPVEYOR_REPO_TAG_NAME != "") { echo $env:APPVEYOR_REPO_TAG_NAME } else { echo "No tag" }
42+
- ps: if ($env:nodejs_version = "12") { echo "node 12" } else { echo "node != 12" }
43+
- ps: if ($env:APPVEYOR_REPO_TAG_NAME != "") && ($env:nodejs_version = "12") { npm publish }
4444

4545
build: off
4646
version: "{build}"

0 commit comments

Comments
 (0)