From 9eab357b750089a90f01cf0c4c963da67f9b2a1c 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: Wed, 10 Apr 2024 13:01:43 +0200 Subject: [PATCH] ci: Keep n8n-workflow version in sync with the main version (no-changelog) (#9107) --- .github/scripts/bump-versions.mjs | 6 ++++-- .github/workflows/release-push-to-channel.yml | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/scripts/bump-versions.mjs b/.github/scripts/bump-versions.mjs index 8e7acc21eb..e98042b015 100644 --- a/.github/scripts/bump-versions.mjs +++ b/.github/scripts/bump-versions.mjs @@ -33,8 +33,10 @@ assert.ok( '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; +// Keep the monorepo and n8n-workflow version up to date with the released version +const { version } = packageMap['n8n']; +packageMap['monorepo-root'].version = version; +packageMap['n8n-workflow'].version = version; for (const packageName in packageMap) { const { path, version, isDirty } = packageMap[packageName]; diff --git a/.github/workflows/release-push-to-channel.yml b/.github/workflows/release-push-to-channel.yml index aca481cfb4..cfbe5ed1b8 100644 --- a/.github/workflows/release-push-to-channel.yml +++ b/.github/workflows/release-push-to-channel.yml @@ -28,6 +28,7 @@ jobs: - run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc npm dist-tag add n8n@${{ github.event.inputs.version }} ${{ github.event.inputs.release-channel }} + npm dist-tag add n8n-workflow@${{ github.event.inputs.version }} ${{ github.event.inputs.release-channel }} release-to-docker-hub: name: Release to DockerHub