From 6710b0a78e118e66762ead14ed5ec3f16e54eaf4 Mon Sep 17 00:00:00 2001 From: nirmalatgallabox <129173419+nirmalatgallabox@users.noreply.github.com> Date: Wed, 24 Apr 2024 18:30:26 +0530 Subject: [PATCH] chore(repo): created release commit & tag workflow --- .github/workflows/dart.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 67d7b2d..ffce82f 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -7,7 +7,7 @@ name: Dart on: pull_request: - branches: [ "main" ] + branches: ["main"] types: [closed] jobs: @@ -31,11 +31,19 @@ jobs: # run: dart format --output=none --set-exit-if-changed . # Consider passing '--fatal-infos' for slightly stricter analysis. - - name: Analyze project source - run: dart analyze + # - name: Analyze project source + # run: dart analyze # Your project will need to have tests in test/ and a dependency on # package:test for this step to succeed. Note that Flutter projects will # want to change this to 'flutter test'. # - name: Run tests # run: dart test + - name: Activate Melos v6.0.0 + run: dart pub global activate melos 6.0.0 + + - name: create a release commit and tag with melos + run: melos version --all --yes + + - name: push the created release tag and commit to the repo main branch + run: git push --follow-tag