Skip to content

fix: added fix for workflow #4

fix: added fix for workflow

fix: added fix for workflow #4

Workflow file for this run

# .github/workflows/publish.yml
name: Publish to pub.dev
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v{{version}}'
# Publish using the reusable workflow from dart-lang.
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
name: 'Publish to pub.dev'
environment: 'pub.dev'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.19
- name: Install dependencies
run: dart pub get
working-directory: .
- name: Publish - dry run
run: dart pub publish --dry-run
working-directory: .
# Publishing...
- name: Publish to pub.dev
run: dart pub publish -f
working-directory: .