Skip to content

Commit 6754838

Browse files
authored
ci: Fix auto-release (#1085)
1 parent a8f941c commit 6754838

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/release-automated.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ on:
1010
branches:
1111
- master
1212
- next-major
13-
tags:
14-
- "dart-[0-9]+.[0-9]+.[0-9]+*"
15-
- "flutter-[0-9]+.[0-9]+.[0-9]+*"
1613
env:
1714
package: ${{ startsWith(github.ref_name, 'dart-') && 'dart' || startsWith(github.ref_name, 'flutter-') && 'flutter' || '' }}
1815
jobs:
@@ -41,6 +38,8 @@ jobs:
4138
run: |
4239
git config --global user.name "github-actions[bot]"
4340
git config --global user.email "github-actions[bot]@users.noreply.github.com"
41+
git config --global credential.helper store
42+
echo "https://x-access-token:${{ secrets.RELEASE_GITHUB_TOKEN }}@github.com" > ~/.git-credentials
4443
- name: Run semantic-release for dart package
4544
run: npx semantic-release
4645
working-directory: packages/dart

.github/workflows/release-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: release-publish
22
on:
33
push:
44
tags:
5-
- "dart-[0-9]+.[0-9]+.[0-9]+*"
6-
- "flutter-[0-9]+.[0-9]+.[0-9]+*"
5+
- "dart-*"
6+
- "flutter-*"
77
env:
88
package: ${{ startsWith(github.ref_name, 'dart-') && 'dart' || startsWith(github.ref_name, 'flutter-') && 'flutter' || '' }}
99
jobs:

release.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ async function config() {
114114
'\${nextRelease.version} [skip ci]\n\n\${nextRelease.notes}'
115115
}],
116116
['@semantic-release/github', {
117+
releaseName: packageName !== 'root' ? `${packageName}-\${nextRelease.version}` : '\${nextRelease.version}',
117118
successComment: getReleaseComment(),
118119
labels: ['type:ci'],
119120
releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']

0 commit comments

Comments
 (0)