-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add to example how to automatically release all packages (#16)
Fixes: #19
- Loading branch information
Showing
8 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,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: Melos Action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,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: Melos Action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -c1 --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 }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,11 @@ jobs: | |
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: | ||
run-versioning: true | ||
publish-dry-run: true | ||
create-pr: true | ||
git-email: [email protected] | ||
git-name: Melos Action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,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: Melos Action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -c1 --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 }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,10 @@ 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: true | ||
publish-dry-run: true | ||
git-email: [email protected] | ||
git-name: Melos Action |