File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/hadron-build/commands Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,9 @@ const Target = require('../lib/target');
1717const downloadCenter = require ( '../lib/download-center' ) ;
1818
1919async function maybePublishGitHubRelease ( target ) {
20- if ( target . channel === 'dev' ) {
21- cli . info ( 'Skipping publish GitHub release for dev channel.' ) ;
22- }
23-
2420 if ( ! process . env . GITHUB_TOKEN ) {
2521 cli . warn ( 'Skipping publish release because process.env.GITHUB_TOKEN not set.' ) ;
22+ return ;
2623 }
2724
2825 const octokit = new Octokit ( {
@@ -90,6 +87,11 @@ exports.handler = function(argv) {
9087
9188 var target = new Target ( argv . dir ) ;
9289
90+ if ( target . channel === 'dev' ) {
91+ cli . info ( 'Skipping publish GitHub release for dev channel.' ) ;
92+ return ;
93+ }
94+
9395 maybePublishGitHubRelease ( target )
9496 . then ( ( ) => downloadCenter . maybeUpload ( target ) )
9597 . catch ( abortIfError ) ;
You can’t perform that action at this time.
0 commit comments