Skip to content

Commit

Permalink
workflow: force publish all packages, reduce cognitive load [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Oct 18, 2019
1 parent a6528d9 commit 84be64d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,12 @@ const release = async () => {

const lernaArgs = [
'publish',
version
version,

// keep packages' versions in sync
'--force-publish'
]
const releaseType = semver.diff(curVersion, version)

// keep packages' minor version in sync
if (releaseType !== 'patch') {
lernaArgs.push('--force-publish')
} else {
lernaArgs.push('--force-publish=@vue/cli')
}
await execa(require.resolve('lerna/cli'), lernaArgs, { stdio: 'inherit' })
}

Expand Down

0 comments on commit 84be64d

Please sign in to comment.