chore: fix lint
This commit is contained in:
Родитель
c3be37372b
Коммит
af7d3ea5fa
|
@ -7,7 +7,7 @@ const branch = process.env.TRAVIS_BRANCH || process.env.GIT_LOCAL_BRANCH;
|
|||
const branchTags = config.release && config.release.branchTags;
|
||||
const tag = branchTags && branchTags[branch];
|
||||
const dryRun = process.argv.find(arg => /^(--dry-run|-n)$/.test(arg));
|
||||
const public = process.argv.find(arg => /^(--public)$/.test(arg));
|
||||
const publicPackage = process.argv.find(arg => /^(--public)$/.test(arg));
|
||||
const validate = process.argv.find(arg => /^(--validate|-v)$/.test(arg));
|
||||
const command = [ 'npm', 'publish' ];
|
||||
|
||||
|
@ -20,7 +20,7 @@ if (tag) {
|
|||
command.push('--tag', tag);
|
||||
}
|
||||
|
||||
if (public) {
|
||||
if (publicPackage) {
|
||||
command.push('--access=public');
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче