Skip to content

Commit e5b40ea

Browse files
committed
chore: configure release-please manifest mode and renovate CLI version managers
1 parent ac57379 commit e5b40ea

File tree

4 files changed

+68
-1
lines changed

4 files changed

+68
-1
lines changed

.github/renovate.json5

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,54 @@
33
"github>cloudquery/.github//.github/renovate-go-default.json5",
44
"github>cloudquery/.github//.github/renovate-node-default.json5",
55
],
6+
customManagers: [
7+
{
8+
// CLI version in README.md code example
9+
customType: "regex",
10+
fileMatch: ["^README\\.md$"],
11+
matchStrings: [
12+
"cloudquery/setup\\-cloudquery[\\s\\S]+?version\\:\\s+['\"]?(?<currentValue>[^'\"\\s]+)['\"]?",
13+
],
14+
packageNameTemplate: "cloudquery/cloudquery",
15+
depNameTemplate: "cli",
16+
datasourceTemplate: "github-releases",
17+
extractVersionTemplate: "^cli-(?<version>.+)$",
18+
},
19+
{
20+
// CLI version in example_matrix.yml (uses: ./. with version: "v6.8.0")
21+
customType: "regex",
22+
fileMatch: ["^.github/workflows/example_matrix\\.yml$"],
23+
matchStrings: [
24+
"version\\:\\s+[\"'](?<currentValue>[^\"']+)[\"']",
25+
],
26+
packageNameTemplate: "cloudquery/cloudquery",
27+
depNameTemplate: "cli",
28+
datasourceTemplate: "github-releases",
29+
extractVersionTemplate: "^cli-(?<version>.+)$",
30+
},
31+
{
32+
// CLI version without v prefix in example.yml matrix (first value: "6.8.0")
33+
customType: "regex",
34+
fileMatch: ["^.github/workflows/example\\.yml$"],
35+
matchStrings: [
36+
"cloudquery-version\\:\\s+\\[\"(?<currentValue>[^\"]+)\"",
37+
],
38+
packageNameTemplate: "cloudquery/cloudquery",
39+
depNameTemplate: "cli-no-v",
40+
datasourceTemplate: "github-releases",
41+
extractVersionTemplate: "^cli-v(?<version>.+)$",
42+
},
43+
{
44+
// CLI version with v prefix in example.yml matrix (second value: "v6.8.0")
45+
customType: "regex",
46+
fileMatch: ["^.github/workflows/example\\.yml$"],
47+
matchStrings: [
48+
"cloudquery-version\\:\\s+\\[\"[^\"]+\",\\s*\"(?<currentValue>[^\"]+)\"",
49+
],
50+
packageNameTemplate: "cloudquery/cloudquery",
51+
depNameTemplate: "cli",
52+
datasourceTemplate: "github-releases",
53+
extractVersionTemplate: "^cli-(?<version>.+)$",
54+
},
55+
],
656
}

.github/workflows/release-please.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ jobs:
1414
- uses: GoogleCloudPlatform/release-please-action@v4
1515
with:
1616
token: ${{ secrets.GH_CQ_BOT }}
17-
release-type: node

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "5.0.0"
3+
}

release-please-config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "node",
6+
"extra-files": [
7+
{
8+
"type": "generic",
9+
"path": "README.md",
10+
"glob": false
11+
}
12+
]
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)