Skip to content

Commit 8f60730

Browse files
committed
chore: finalize worfklow
1 parent e1d4ce5 commit 8f60730

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/release_github.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@ on:
44
push:
55
branches: [master]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
release:
913
# Only run this job for commits that indicate a release
10-
if: {{ startsWith(github.event.head_commit.message, 'chore(repo): release') }}
14+
if: "${{ startsWith(github.event.head_commit.message, 'chore(repo): release') }}"
1115
runs-on: ubuntu-latest
1216

1317
steps:
1418
- name: 📚 Checkout branch
1519
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
1622

1723
- name: 🏷️ Extract Version Tag
1824
id: extract_tag
@@ -44,8 +50,7 @@ jobs:
4450
- name: 🚀 Create GitHub Release
4551
uses: softprops/action-gh-release@v1
4652
with:
47-
make_latest: true
4853
generate_release_notes: true
4954
tag_name: ${{ steps.extract_tag.outputs.tag }}
5055
prerelease: ${{ steps.extract_tag.outputs.prerelease }}
51-
token: ${{ secrets.BOT_PERSONAL_ACCESS_TOKEN }}
56+
token: ${{ secrets.BOT_GITHUB_API_TOKEN }}

.github/workflows/release_pub.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: release_pub
33
on:
44
release:
55
types: [published]
6-
workflow_dispatch:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
710

811
jobs:
912
release:

melos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,4 @@ scripts:
205205

206206
release:pub:
207207
run: melos exec -c 1 --no-published --no-private --order-dependents -- "flutter pub publish -f"
208-
description: Publish all packages to pub.dev.
208+
description: Publish all packages to pub.dev.

0 commit comments

Comments
 (0)