Skip to content

Commit

Permalink
ci: Semi-automate publish process (#1856)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 authored Nov 17, 2024
1 parent b401a23 commit 78a5683
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
run-versioning: ${{ inputs.prerelease == false }}
run-versioning-prerelease: ${{ inputs.prerelease == true }}
publish-dry-run: true
create-pr: true
git-email: [email protected]
git-name: Bluefireteam
4 changes: 2 additions & 2 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
publish: true
git-email: [email protected]
git-name: Bluefireteam
14 changes: 12 additions & 2 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
name: Tag release
name: Tag and start release
on:
push:
branches: [main]

jobs:
publish-packages:
name: Create tag for a release
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@v4
with:
fetch-depth: 0
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
tag: true
- run: |
melos exec -c 1 --no-published --no-private --order-dependents -- \
gh workflow run release-publish.yml \
--ref \$MELOS_PACKAGE_NAME-v\$MELOS_PACKAGE_VERSION
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 78a5683

Please sign in to comment.