Skip to content

flutter_image_compress-v2.1.0 #11

flutter_image_compress-v2.1.0

flutter_image_compress-v2.1.0 #11

name: Publish
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.7'
channel: 'stable'
- run: flutter --version
- name: Install dependencies
run: flutter pub get
- name: Install melos
run: flutter pub global activate melos
- name: Get packages
run: |
melos bootstrap
melos run get
- name: Try to publish
run: melos publish --yes --dry-run
- name: Write token to local
run: |
mkdir -p ~/.config/dart
echo ${{ secrets.CREDENTIAL_JSON }} > ~/.config/dart/pub-credentials.json
- name: Publish to pub.dev
run: melos publish --yes --no-dry-run