Commit 800126f
committed
fix(ng-dev/release): skip commit in snapshot repository if no changes are detected
When publishing snapshots, it's possible that a package is built but contains no functional changes compared to the previous snapshot (e.g. only version placeholder
changes which are ignored by the diff).
Previously, we would still attempt to run `git commit`, which would fail if no changes were staged. This change wraps the commit call in a check for changes, avoiding empty commits or errors.1 parent f719348 commit 800126f
1 file changed
+13
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| |||
0 commit comments