Skip to content

Merge pull request #40 from devaryakjha/release-12500542857 #16

Merge pull request #40 from devaryakjha/release-12500542857

Merge pull request #40 from devaryakjha/release-12500542857 #16

Workflow file for this run

name: Create Dev Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
if: "${{ !contains(github.event.head_commit.message, 'chore(release): Publish packages') }}"
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}
fetch-depth: 0
fetch-tags: true
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Setup Git User
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Setup Melos
uses: bluefireteam/melos-action@v3
with:
run-bootstrap: true
run-versioning-prerelease: true
create-pr: true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
PUB_CREDENTIALS: ${{ secrets.CREDENTIALS_JSON }}
- name: Create Git Tags
run: |
melos version --yes --no-git-tag-version --prerelease -r
melos exec -c 1 "git tag \$MELOS_PACKAGE_NAME-v\$MELOS_PACKAGE_VERSION"
git push --follow-tags