Skip to content

chore(main): release 1.7.0 (#39) #15

chore(main): release 1.7.0 (#39)

chore(main): release 1.7.0 (#39) #15

Workflow file for this run

name: CD (Publish to pub.dev)
on:
push:
tags:
# must align with the tag-pattern configured on pub.dev, often just replace
# {{version}} with [0-9]+.[0-9]+.[0-9]+
- 'v[0-9]+.[0-9]+.[0-9]+' # tag-pattern on pub.dev: 'v{{version}}'
workflow_dispatch:
# If you prefer tags like '1.2.3', without the 'v' prefix, then use:
# - '[0-9]+.[0-9]+.[0-9]+' # tag-pattern on pub.dev: '{{version}}'
# If your repository contains multiple packages consider a pattern like:
# - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
name: Publish to pub.dev
runs-on: ubuntu-latest
permissions:
id-token: write # Required for authentication using OIDC
steps:
- uses: actions/checkout@v6
- uses: dart-lang/setup-dart@v1
with:
sdk: "3.11.5"
- name: Install dependencies
run: dart pub get
- name: Publish - dry run
run: dart pub publish --dry-run
- name: Publish to pub.dev
run: dart pub publish -f