Skip to content

Commit

Permalink
fix: ensure that the token values is a string
Browse files Browse the repository at this point in the history
Fix #187

Signed-off-by: Sarun Intaralawan <[email protected]>
  • Loading branch information
sarunint committed Sep 11, 2020
1 parent 51fc101 commit 47fcd1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/conventional-github-releaser/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ const cli = meow({
},
token: {
alias: 't',
default: process.env.CONVENTIONAL_GITHUB_RELEASER_TOKEN,
type: 'string'
default: process.env.CONVENTIONAL_GITHUB_RELEASER_TOKEN || '',
type: 'string',
isRequired: false
},
preset: {
alias: 'p',
Expand Down
2 changes: 1 addition & 1 deletion packages/conventional-gitlab-releaser/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const cli = meow({
},
token: {
alias: 't',
default: process.env.CONVENTIONAL_GITLAB_RELEASER_TOKEN,
default: process.env.CONVENTIONAL_GITLAB_RELEASER_TOKEN || '',
type: 'string'
},
preset: {
Expand Down
2 changes: 1 addition & 1 deletion packages/conventional-tidelift-releaser/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const cli = meow({
},
token: {
alias: 't',
default: process.env.CONVENTIONAL_GITLAB_RELEASER_TOKEN,
default: process.env.CONVENTIONAL_GITLAB_RELEASER_TOKEN || '',
type: 'string'
},
preset: {
Expand Down

0 comments on commit 47fcd1c

Please sign in to comment.