Skip to content

Commit

Permalink
chore(workflow): enhance publish.yml to support prerelease tagging
Browse files Browse the repository at this point in the history
- Updated the GitHub Actions workflow to include support for prerelease tags, allowing for tags like `tagflow-v0.0.1-dev.10`.
- Improved clarity in the tag matching regex for better versioning management.
  • Loading branch information
devaryakjha committed Dec 25, 2024
1 parent dbd3e92 commit 1f0e539
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ name: Publish to pub.dev
on:
push:
tags:
- "tagflow-v[0-9]+.[0-9]+.[0-9]+*"
- "tagflow-v[0-9]+.[0-9]+.[0-9]+*" # This matches tags like tagflow-v1.2.3
- "tagflow-v[0-9]+.[0-9]+.[0-9]+-dev.[0-9]+" # This matches tags like tagflow-v0.0.1-dev.10

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: packages/tagflow

0 comments on commit 1f0e539

Please sign in to comment.