-
-
Notifications
You must be signed in to change notification settings - Fork 1k
29 lines (27 loc) · 774 Bytes
/
Copy pathrelease-tag.yml
File metadata and controls
29 lines (27 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Tag release
on:
push:
branches: [main]
jobs:
publish-packages:
name: Create tags for release
permissions:
actions: write
contents: write
runs-on: [ ubuntu-latest ]
if: contains(github.event.head_commit.message, 'chore(release)')
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
tag: true
- name: Trigger publish for unpublished packages
run: |
melos exec -c1 --no-published --no-private -- \
gh workflow run release-publish.yml \
--ref \$MELOS_PACKAGE_NAME-v\$MELOS_PACKAGE_VERSION
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}