Skip to content

Commit 5b5b065

Browse files
committed
chore(ci): update QA workflow and chart dependencies
- Updated the QA workflow to include commit username and email for the release bot. - Changed the version specification for network-bootstrapper and network-nodes dependencies to allow for flexible versioning. This update enhances the CI process and ensures compatibility with future chart updates.
1 parent 77b8f1f commit 5b5b065

5 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/qa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ jobs:
278278
with:
279279
token: ${{ secrets.GITHUB_TOKEN }}
280280
charts_dir: charts
281+
commit_username: SettleMint Release Bot
282+
commit_email: support@settlemint.com
281283

282284
# Check PR review status (PR and PR review events only)
283285
- name: Check PR review status

charts/network/Chart.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ maintainers:
1010
url: https://settlemint.com
1111
dependencies:
1212
- name: network-bootstrapper
13-
version: 1.0.1
13+
version: "*"
1414
- name: network-nodes
15-
version: 1.0.1
16-
15+
version: "*"

charts/network/charts/network-bootstrapper/Chart.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ maintainers:
88
- name: SettleMint
99
email: support@settlemint.com
1010
url: https://settlemint.com
11-

charts/network/charts/network-nodes/Chart.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ maintainers:
88
- name: SettleMint
99
email: support@settlemint.com
1010
url: https://settlemint.com
11-

tools/version.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -274,18 +274,22 @@ function updateWorkspaceDependencies(
274274
*/
275275
function updateChartDependencies(
276276
dependencies:
277-
| Array<{ name: string; version: string; [key: string]: unknown }>
278-
| undefined,
279-
newVersion: string
277+
| Array<{
278+
name: string;
279+
version: string;
280+
repository?: string;
281+
[key: string]: unknown;
282+
}>
283+
| undefined
280284
): number {
281285
if (!dependencies) {
282286
return 0;
283287
}
284288

285289
let dependencyCount = 0;
286290
for (const dep of dependencies) {
287-
if (dep.version === "*") {
288-
dep.version = newVersion;
291+
if (dep.version !== "*") {
292+
dep.version = "*";
289293
dependencyCount++;
290294
}
291295
}
@@ -467,15 +471,14 @@ async function updateChartVersions(
467471
}
468472

469473
const dependencyUpdates = updateChartDependencies(
470-
chart.dependencies,
471-
newVersion
474+
chart.dependencies
472475
);
473476

474477
if (dependencyUpdates > 0) {
475478
logs.push(
476-
`Updated ${dependencyUpdates} chart dependenc${
479+
`Set ${dependencyUpdates} chart dependenc${
477480
dependencyUpdates === 1 ? "y" : "ies"
478-
} pinned to "*"`
481+
} to "*"`
479482
);
480483
}
481484

0 commit comments

Comments
 (0)