Skip to content

Commit

Permalink
chore: noLockUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 26, 2024
1 parent 059c76b commit cb30dd4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ let {
skipCleanCheck: skipCleanGitCheck,
noDepsUpdate,
noPublish,
noLockUpdate,
} = args

if (args.h || args.help) {
Expand All @@ -37,6 +38,7 @@ Flags:
--skipCleanCheck Skip checking if the git repo is clean
--noDepsUpdate Skip updating dependencies in package.json files
--noPublish Skip publishing packages
--noLockUpdate Skips updating the lock with "pnpm install"
`.trim()
)
process.exit(0)
Expand Down Expand Up @@ -201,8 +203,10 @@ async function main() {
step('\nUpdating versions in package.json files...')
await updateVersions(pkgWithVersions)

step('\nUpdating lock...')
await runIfNotDry(`pnpm`, ['install'])
if (!noLockUpdate) {
step('\nUpdating lock...')
await runIfNotDry(`pnpm`, ['install'])
}

step('\nGenerating changelogs...')
for (const pkg of pkgWithVersions) {
Expand Down

0 comments on commit cb30dd4

Please sign in to comment.