Commit bf8be9b
committed
Use explicit npm dist-tag to allow publishing older versions
When publishing a backport release (e.g. 1.8.1) after a newer version
(e.g. 1.9.0) already exists on npm, `npm publish` fails because it
tries to move the `latest` tag to a lower version. Fix this by
comparing the package version against the current `latest` on npm and
using a `stable-X.Y` dist-tag for older releases.1 parent eceb44d commit bf8be9b
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 | | |
0 commit comments