From 042201e895ca6ceca54b4dd7a31c4a864ec67bcb Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 20 Mar 2019 14:15:32 -0400 Subject: [PATCH] fix prod deploy for snap and npm --- appveyor.yml | 2 +- scripts/snap-build.ps1 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index f7fa128d25..c5ab823a8d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -127,7 +127,6 @@ after_build: else { echo "Deploy Windows..." .\scripts\choco-update.ps1 -version $env:PACKAGE_VERSION - npm run publish:npm } } - sh: | @@ -135,6 +134,7 @@ after_build: then snapcraft logout fi +- cmd: if ["%PROD_DEPLOY%"] equ ["true"] npm run publish:npm on_finish: - ps: | diff --git a/scripts/snap-build.ps1 b/scripts/snap-build.ps1 index 9dcacb3df4..dfae76682d 100644 --- a/scripts/snap-build.ps1 +++ b/scripts/snap-build.ps1 @@ -29,3 +29,4 @@ Copy-Item -Path $snapDir -Destination $distSnapDir –Recurse (Get-Content $snapDistYaml).replace('__version__', $version) | Set-Content $snapDistYaml cd $distSnapDir snapcraft +cd $rootDir