From c7df9eddba1e2fb0a815a67bf856d90f0e8ea3dc Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sun, 30 Nov 2025 14:32:19 +0100 Subject: [PATCH 1/2] fix patterns --- .github/workflows/release-automated.yml | 3 --- .github/workflows/release-publish.yml | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-automated.yml b/.github/workflows/release-automated.yml index b3eabdedb..7cf7a0be4 100644 --- a/.github/workflows/release-automated.yml +++ b/.github/workflows/release-automated.yml @@ -10,9 +10,6 @@ on: branches: - master - next-major - tags: - - "dart-[0-9]+.[0-9]+.[0-9]+*" - - "flutter-[0-9]+.[0-9]+.[0-9]+*" env: package: ${{ startsWith(github.ref_name, 'dart-') && 'dart' || startsWith(github.ref_name, 'flutter-') && 'flutter' || '' }} jobs: diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 3f2990770..3fb39d2f1 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -2,8 +2,8 @@ name: release-publish on: push: tags: - - "dart-[0-9]+.[0-9]+.[0-9]+*" - - "flutter-[0-9]+.[0-9]+.[0-9]+*" + - "dart-*" + - "flutter-*" env: package: ${{ startsWith(github.ref_name, 'dart-') && 'dart' || startsWith(github.ref_name, 'flutter-') && 'flutter' || '' }} jobs: From 5448dae012172057d8516e6148694e0395434aaa Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sun, 30 Nov 2025 14:34:06 +0100 Subject: [PATCH 2/2] git credentials fix --- .github/workflows/release-automated.yml | 2 ++ release.config.js | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/release-automated.yml b/.github/workflows/release-automated.yml index 7cf7a0be4..24ac2b103 100644 --- a/.github/workflows/release-automated.yml +++ b/.github/workflows/release-automated.yml @@ -38,6 +38,8 @@ jobs: run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global credential.helper store + echo "https://x-access-token:${{ secrets.RELEASE_GITHUB_TOKEN }}@github.com" > ~/.git-credentials - name: Run semantic-release for dart package run: npx semantic-release working-directory: packages/dart diff --git a/release.config.js b/release.config.js index 6264db3a8..7444b9913 100644 --- a/release.config.js +++ b/release.config.js @@ -114,6 +114,7 @@ async function config() { '\${nextRelease.version} [skip ci]\n\n\${nextRelease.notes}' }], ['@semantic-release/github', { + releaseName: packageName !== 'root' ? `${packageName}-\${nextRelease.version}` : '\${nextRelease.version}', successComment: getReleaseComment(), labels: ['type:ci'], releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']