Skip to content

Commit

Permalink
feat(publish): uodate documentation & add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
remdash committed Jun 11, 2024
1 parent ca1a9ab commit 8f9299b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const cli = meow(`
--refresh-token OAuth2 Refresh Token (environment variable REFRESH_TOKEN)
--auto-publish Can be used with the "upload" command (deprecated, use \`chrome-webstore-upload\` without a command instead)
--trusted-testers Can be used with the "publish" command
--deploy-percentage Can be used with the "publish" command
--deploy-percentage Can be used with the "publish" command. Defaults to 100
Examples
Upload and publish a new version, using existing environment variables and the default value for --source
Expand Down
6 changes: 6 additions & 0 deletions test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ test('Publish with deploy percentage', async t => {
t.is(config.deployPercentage, 5);
});

test('Publish without deploy percentage', async t => {
const config = await createConfig(null, {});

t.falsy(config.deployPercentage);
});

test('Auto upload and publish', async t => {
const config = await createConfig('', {});
t.false(config.isPublish);
Expand Down

0 comments on commit 8f9299b

Please sign in to comment.