File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ environment:
2626 nan_version : 2.7.0
2727 pre_gyp_version : 0.6.39
2828 pre_gyp_github_version : 1.3.0
29+ publish_to_npm : true
2930
3031cache :
3132 - ' %APPDATA%\npm-cache'
@@ -36,6 +37,8 @@ install:
3637 - npm i nan@%nan_version%
3738 - npm install -g node-pre-gyp@%pre_gyp_version%
3839 - npm install -g node-pre-gyp-github@%pre_gyp_github_version%
40+ - ps : >-
41+ "//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII
3942
4043build_script :
4144 - node-pre-gyp configure
6366 git config --global user.email "[email protected] " 6467 git config --global user.name "MatthD"
6568 node-pre-gyp-github publish --release
69+ if ($env:publish_to_npm){
70+ npm publish
71+ }
6672 }else
6773 {
6874 Write-Host "NODE_PRE_GYP_GITHUB_TOKEN missing. Not authorised to perform release."
You can’t perform that action at this time.
0 commit comments