Skip to content

Commit

Permalink
ci: Add Melos Actions for Publishing (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
ABausG authored Aug 28, 2024
1 parent 24d08a9 commit 9e776cf
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/.cspell/names_dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ josepedromonteiro # github.com/josepedromonteiro
stepushchik # github.com/stepushchik-denis-gismart
gismart # github.com/stepushchik-denis-gismart
aljkor # github.com/aljkor
mgonzalezc # github.com/mgonzalezc
mgonzalezc # github.com/mgonzalezc
subosito # github.com/subosito
bluefireteam # github.com/bluefireteam
28 changes: 28 additions & 0 deletions .github/workflows/release-prepare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Prepare release
on:
workflow_dispatch:
inputs:
prerelease:
description: 'Version as prerelease'
required: false
default: false
type: boolean

jobs:
prepare-release:
name: Prepare release
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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: github@antonborri.es
git-name: Melos Action
22 changes: 22 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish packages
on:
push:
tags:
- 'home_widget-v*'
workflow_dispatch:

jobs:
publish-packages:
name: Publish packages
permissions:
contents: write
id-token: write
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
publish: true
git-email: github@antonborri.es
git-name: Melos Action
18 changes: 18 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Tag release
on:
push:
branches: [main]

jobs:
publish-packages:
name: Create tag for a release
permissions:
contents: write
runs-on: [ ubuntu-latest ]
if: contains(github.event.head_commit.message, 'chore(release)')
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
tag: true

0 comments on commit 9e776cf

Please sign in to comment.