-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98b3bc9
commit 921ac26
Showing
1 changed file
with
4 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
tags: | ||
# must align with the tag-pattern configured on pub.dev, often just replace | ||
# with [0-9]+.[0-9]+.[0-9]+* | ||
# - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v' | ||
# - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v' | ||
# 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: '' | ||
# If you repository contains multiple packages consider a pattern like: | ||
|
@@ -16,25 +16,15 @@ jobs: | |
build: | ||
permissions: | ||
id-token: write # This is required for authentication using OIDC | ||
runs-on: macos-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Tap Google's Dart formula repository | ||
run: brew tap dart-lang/dart | ||
- name: Install the Dart formula | ||
run: brew install dart | ||
- uses: dart-lang/setup-dart@v1 | ||
- name: Install dependencies | ||
run: dart pub get | ||
- name: Run tests | ||
run: dart pub run test | ||
- name: Format code | ||
run: dart format --fix . | ||
- name: Check Publish Warnings | ||
run: dart pub publish --dry-run | ||
- name: Publish | ||
run: dart pub publish --force | ||
# uses: k-paxian/[email protected] | ||
# with: | ||
# credentialJson: ${{ secrets.CREDENTIAL_JSON }} | ||
# flutter: true | ||
# skipTests: true | ||
run: dart pub publish --force |