Skip to content

fix: Don't remove when. (#361) #161

fix: Don't remove when. (#361)

fix: Don't remove when. (#361) #161

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Activate melos
run: |
dart pub get
dart pub global activate melos
- name: Login pub
run: |
mkdir -p "$XDG_CONFIG_HOME/dart/"
echo "${{ secrets.PUB_CREDENTIALS}}" | base64 -d > "$XDG_CONFIG_HOME/dart/pub-credentials.json"
- name: Validate publish
run: dart run melos publish --dry-run --yes
- name: Publish
run: dart run melos publish --no-dry-run --yes