From 69b124fc7823e5fb4d0a8090959b3f0b17476ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 10 Mar 2023 13:25:06 +0100 Subject: [PATCH] ci: Allow releasing new versions as long as one of the packages is modified (no-changelog) --- .github/scripts/bump-versions.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/bump-versions.mjs b/.github/scripts/bump-versions.mjs index da45c92a8..c1c110272 100644 --- a/.github/scripts/bump-versions.mjs +++ b/.github/scripts/bump-versions.mjs @@ -28,7 +28,10 @@ for (let { name, path, version, private: isPrivate, dependencies } of packages) packageMap[name] = { path, isDirty, version }; } -assert.ok(packageMap['n8n'].isDirty, 'No changes found since the last release'); +assert.ok( + Object.values(packageMap).some(({ isDirty }) => isDirty), + 'No changes found since the last release', +); // Keep the monorepo version up to date with the released version packageMap['monorepo-root'].version = packageMap['n8n'].version;