You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Filtering releases with releaseRegex](#filtering-releases-with-releaseregex)
27
28
-[Default Configuration](#default-configuration)
28
29
-[Commands](#commands)
29
30
-[Sync](#sync)
@@ -216,6 +217,52 @@ To extract files from a compressed release archive, you can define an object tha
216
217
}
217
218
```
218
219
220
+
### Filtering releases with releaseRegex
221
+
222
+
Vendorfiles can now filter release tags/titles when searching for the "latest" release using the `releaseRegex` option. This should be a JavaScript-style regular expression string (without surrounding `/` delimiters). The regex is tested against the release tag/name (and can be used to match release titles where appropriate) to restrict which releases are considered the “latest”.
223
+
224
+
Use-cases:
225
+
226
+
- Only consider semver tags: `"^v\\d+\\.\\d+\\.\\d+$"`
227
+
- Ignore pre-releases with `-alpha`/`-beta`: `"^v(?!.*-(?:alpha|beta)).*"`
228
+
- Prefer releases whose title contains `stable`: `"stable"`
0 commit comments