From 59945d26bbaf060a15d7e686d2d45326ad77023a Mon Sep 17 00:00:00 2001 From: Thomas Dax Date: Mon, 17 Feb 2025 10:21:40 +0100 Subject: [PATCH] Enable changesets for v2 releases (#276) --- .changeset/config.json | 2 +- .github/workflows/release.yml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index c18c7bae..425d91ba 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -5,7 +5,7 @@ "fixed": [["@comet/*"]], "linked": [], "access": "restricted", - "baseBranch": "main", + "baseBranch": "v2.x.x", "updateInternalDependencies": "patch", "ignore": ["comet-brevo-module-demo-api", "comet-brevo-module-demo-admin", "comet-brevo-module-demo-site"], "snapshot": { diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e6a08e7..8d5ae283 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,9 @@ -name: Release +name: Release (v2) on: push: branches: - - main + - v2.x.x concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -42,7 +42,8 @@ jobs: uses: dotansimha/changesets-action@cbc5ff3569ae9861100a48b290f4e9c1b94e45b5 with: version: pnpm run version - publish: pnpm run publish + publish: pnpm run publish --tag=stable-v2 + title: "Version Packages (v2)" createGithubReleases: aggregate githubReleaseName: "${{ env.PUBLISHED_VERSION }}" githubTagName: "v${{ env.PUBLISHED_VERSION }}"