From f672edbbebe348cbaa613b09a66489258600205e Mon Sep 17 00:00:00 2001 From: Roscoe Rubin-Rottenberg Date: Wed, 13 May 2026 21:13:50 -0400 Subject: [PATCH] ci: auto-publishing --- .github/workflows/publish.yml | 35 +++++++++++++++++++++++++++++++++++ pubspec.yaml | 4 ++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..5283c3b37 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,35 @@ +name: Publish + +on: + push: + tags: + - "*-v*.*.*" + +permissions: + contents: write + id-token: write + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4.1.7 + with: + fetch-depth: 0 + + - uses: dart-lang/setup-dart@v1 + + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + - name: Install dependencies + run: dart pub get + + - name: Analyze + run: dart analyze + + - name: Publish packages + run: dart run melos run publish_all diff --git a/pubspec.yaml b/pubspec.yaml index 15e559f29..6deb408e2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -83,8 +83,8 @@ melos: publish_all: run: | - melos publish - melos publish --no-dry-run --git-tag-version + dart run melos publish + dart run melos publish --no-dry-run --git-tag-version --yes git push origin --tags description: Publish all packages, create git tags and push them to origin. -- 2.51.2