Skip to content

Commit 6e2687d

Browse files
committed
Release only if token present
1 parent fda561a commit 6e2687d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

appveyor.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ test: off
4343
artifacts:
4444
- path: .\build\stage
4545
on_success:
46-
on:
47-
branch: master
48-
- git config --global credential.helper store
49-
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:NODE_PRE_GYP_GITHUB_TOKEN):[email protected]`n"
50-
- git config --global user.email "[email protected]"
51-
- git config --global user.name "MatthD"
52-
- node-pre-gyp-github publish --release
46+
- ps: |
47+
if ($env:NODE_PRE_GYP_GITHUB_TOKEN)
48+
{
49+
git config --global credential.helper store
50+
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:NODE_PRE_GYP_GITHUB_TOKEN):[email protected]`n"
51+
git config --global user.email "[email protected]"
52+
git config --global user.name "MatthD"
53+
node-pre-gyp-github publish --release
54+
}

0 commit comments

Comments
 (0)