Skip to content

Socket client - Publish to pub.dev #4

Socket client - Publish to pub.dev

Socket client - Publish to pub.dev #4

name: Socket client - Publish to pub.dev
on:
workflow_run:
types: completed
workflows: Socket client - Configure pakcage
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
jobs:
publish_superviz_socket_client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- run: git config --global user.name SuperViz
- run: git config --global user.email [email protected]
- run: cd packages/socket-client
- name: Intalling dependencies
run: dart pub get
- name: Running build runner
run: dart run build_runner build
- name: Analyze project source
run: dart analyze
- name: Verify formatting
run: dart format --output=write --set-exit-if-changed .
- name: Commit changes
run: |
git add .
git commit -m "chore(release): format code [skip ci]" || echo "No changes to commit"
git push --follow-tags
- name: Running build runner
run: dart run build_runner build
- name: Running tests
run: dart test
- name: Publish
run: dart pub publish