Skip to content

Commit e3a1b49

Browse files
committed
docs(release): make the runbook smoke-test command cross-shell
The step-4 lerna version command used a bash-only backslash continuation and $(git branch --show-current), which fail in PowerShell/cmd. Use a single-line command with --allow-branch "*" (quoted so bash doesn't glob-expand it) so it runs identically in PowerShell, cmd, bash, and zsh. Also scope the cleanup to 'git checkout -- packages' so it only discards lerna's version writes.
1 parent b90ce7a commit e3a1b49

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/RELEASING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ npm run test
137137
# TS2322) confirms the netmask@2.0.2 + @types/netmask@2.0.5 pins resolved.
138138

139139
# 4. Non-publishing version smoke test — exercises the Lerna 5 version path
140-
# WITHOUT publishing to npm or touching git. `--allow-branch` overrides the
140+
# WITHOUT publishing to npm or touching git. --allow-branch "*" overrides the
141141
# lerna.json `allowBranch: stable` guard for this one local run.
142-
npx lerna version --conventional-commits --no-push --no-git-tag-version \
143-
--allow-branch "$(git branch --show-current)" --yes
144-
git checkout -- . # discard the version/CHANGELOG file writes lerna just made
142+
# Single line + quoted "*" so it runs the same in PowerShell, cmd, bash, zsh.
143+
npx lerna version --conventional-commits --no-push --no-git-tag-version --allow-branch "*" --yes
144+
git checkout -- packages # discard the version/CHANGELOG file writes lerna just made
145145
```
146146

147147
> **`npm run publish:testing` is NOT a dry run — it publishes to npm.**

0 commit comments

Comments
 (0)