Skip to content

docs: Remove compatibility table from READMEs (#1088) #100

docs: Remove compatibility table from READMEs (#1088)

docs: Remove compatibility table from READMEs (#1088) #100

# To authenticate on pub.dev to publish a release via GitHub Actions, a tag
# needs to be pushed, see: https://dart.dev/tools/pub/automated-publishing
#
# Publishing cannot currently be triggered manually via a "workflow_dispatch",
# see: https://dart.dev/go/publishing-from-github
name: release-automated
on:
push:
branches:
- master
- next-major
env:
package: ${{ startsWith(github.ref_name, 'dart-') && 'dart' || startsWith(github.ref_name, 'flutter-') && 'flutter' || '' }}
jobs:
release:
if: github.event_name == 'push' && github.ref_type == 'branch'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Configure git credentials
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global credential.helper store
echo "https://x-access-token:${{ secrets.RELEASE_GITHUB_TOKEN }}@github.com" > ~/.git-credentials
- name: Run semantic-release for dart package
run: npx semantic-release
working-directory: packages/dart
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
PKG_NAME: dart
- name: Run semantic-release for flutter package
run: npx semantic-release
working-directory: packages/flutter
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
PKG_NAME: flutter