diff --git a/index.js b/index.js index 7d34d270..83bb9dd3 100644 --- a/index.js +++ b/index.js @@ -98,6 +98,16 @@ module.exports = (input, opts) => { } tasks.add([ + { + title: 'Bumping version using Yarn', + enabled: () => opts.yarn === true, + skip: () => { + if (runPublish && !pkg.private) { + return 'Public package: version will be bumped using yarn publish.'; + } + }, + task: () => exec('yarn', ['version', '--new-version', input]) + }, { title: 'Bumping version using npm', enabled: () => opts.yarn === false,