Commit 0020d94
fix(post-publish): handle Rush version bump in npm-post-publish pipeline (#5725)
* Fix issues with updates to rushstack-websites.
* fix(post-publish): handle Rush version bump in npm-post-publish pipeline
If `bump-decoupled-local-dependencies` updates the Rush version in
`rush.json`, the subsequent `rush update` step would fail because
`install-run-rush.js` tried to install the new Rush version but the
checked-in `rush-package-lock.json` still referenced the old version.
Fix by emitting `RushWasUpdated` and `NewRushVersion` Azure Pipelines
variables from `BumpDecoupledLocalDependencies`, then conditionally
bootstrapping the new Rush version (skipping lockfile validation) and
updating the checked-in lockfile before running `rush update` normally.
Also only write `rush.json` when the Rush version actually changed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent beb0449 commit 0020d94
3 files changed
Lines changed: 41 additions & 7 deletions
File tree
- common/config/azure-pipelines
- templates
- repo-scripts/repo-toolbox/src/cli/actions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
119 | 137 | | |
120 | 138 | | |
121 | 139 | | |
| |||
126 | 144 | | |
127 | 145 | | |
128 | 146 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 147 | | |
133 | 148 | | |
134 | 149 | | |
| |||
188 | 203 | | |
189 | 204 | | |
190 | 205 | | |
| 206 | + | |
| 207 | + | |
191 | 208 | | |
192 | 209 | | |
193 | 210 | | |
| |||
196 | 213 | | |
197 | 214 | | |
198 | 215 | | |
| 216 | + | |
| 217 | + | |
199 | 218 | | |
200 | 219 | | |
201 | 220 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
186 | 197 | | |
187 | 198 | | |
0 commit comments