Skip to content

Commit

Permalink
feat: automatically use CI mode if CI environment variable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Aug 7, 2020
1 parent 768f00d commit 9f1e0fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = packageJson => {
PACKAGES_DIRECTORY: argv.packages,
MONOREPO_INDEX_GENERATOR: argv['monorepo-index-generator'],
NPM_SCRIPT: argv.script || 'build-storybook',
CI_DEPLOY: Boolean(argv.ci),
CI_DEPLOY: Boolean(argv.ci) || Boolean(process.env.CI),
DRY_RUN: Boolean(argv.dryRun),
// Git Variables
GIT_REMOTE: argv.remote || 'origin',
Expand All @@ -115,6 +115,6 @@ module.exports = packageJson => {
AWS_PROFILE: argv['aws-profile'] || 'default',
BUCKET_PATH: argv['bucket-path'],
S3_PATH: 's3://' + argv['bucket-path'],
S3_SYNC_OPTIONS: argv['s3-sync-options'],
S3_SYNC_OPTIONS: argv['s3-sync-options']
};
};

0 comments on commit 9f1e0fc

Please sign in to comment.