Commit 7941fa7
committed
JavaScript: Skip npmPublish when npmBuild is restored from cache
When npmBuild is restored from the build cache (no JS source changes),
version.txt retains the timestamp from the original build, causing npm
to reject the publish with a 403 since that version already exists.
Adding onlyIf { npmBuild.get().state.didWork } to npmPublish for
snapshot builds so we skip publishing when nothing actually changed.1 parent 92424ce commit 7941fa7
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
0 commit comments