Commit 1211612
authored
ci: only create .rnm-publish sentinel file if versioning happened (#2682)
## Summary:
We run `npm publish` if a `.rnm-publish` sentinel file exists, which is
created as part of nx release. We were unconditionally creating it,
which meant that we would attempt to publish every run, leading to
failed publish runs that try to publish over an existing package. This
change adds a check to only create the sentinel file if publish detects
a change.
## Test Plan:
CI should pass1 parent 66f8fbe commit 1211612
1 file changed
+16
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | | - | |
87 | | - | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | | - | |
90 | | - | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
0 commit comments