Commit b60241f
committed
Fix promote job failing on fresh non-prerelease publish
Check if version exists in npm before attempting dist-tag operation.
When a non-prerelease is published directly, both 'published' and 'released'
events fire simultaneously. The promote job would fail trying to tag a
version that hasn't been published yet. Now it skips gracefully if the
version doesn't exist.1 parent df58f96 commit b60241f
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
0 commit comments