Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,47 @@ jobs:
strategy:
matrix:
dart: [3.3, 3.6]
package: [cli_tools]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1.7.1
with:
sdk: ${{ matrix.dart }}
- name: Verify formatting
- name: Verify formatting ${{ matrix.package }}
run: dart format --output=none --set-exit-if-changed .
working-directory: packages/${{ matrix.package }}

dart_analyze:
name: Dart Analyze
strategy:
matrix:
dart: [3.3, 3.6]
package: [cli_tools]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1.7.1
with:
sdk: ${{ matrix.dart }}
- run: dart pub get
- run: dart analyze --fatal-infos
- name: Dart get and analyze ${{ matrix.package }}
run: |
dart pub get
dart analyze --fatal-infos
working-directory: packages/${{ matrix.package }}

dart_test:
name: Dart Test
strategy:
matrix:
dart: [3.3, 3.6]
package: [cli_tools]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1.7.1
with:
sdk: ${{ matrix.dart }}
- run: dart test
- name: Dart test ${{ matrix.package }}
run: dart test
working-directory: packages/${{ matrix.package }}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ name: Publish CLI Tools
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # Matches tags like v1.2.3 and v1.2.3-pre.1
# Matches tags like cli_tools-v1.2.3 and cli_tools-v1.2.3-pre.1
- 'cli_tools-v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: packages/cli_tools
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions PUBLISH.md → packages/cli_tools/PUBLISH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

To publish this package, simply create a new tag and push it to the repository. The GitHub action will automatically build and publish the package to pub.dev.

The tag needs to be in the format `vX.Y.Z`, where `X`, `Y`, and `Z` are integers. The version number should be incremented according to the [Semantic Versioning](https://semver.org/) rules.
The tag needs to be in the format `package_name-vX.Y.Z`, where `X`, `Y`, and `Z` are integers, for example `cli_tools-v0.5.0`. The version number should be incremented according to the [Semantic Versioning](https://semver.org/) rules.

It is also possible to publish a pre-release version by adding a suffix to the version number. For example, `v1.0.0-dev.1` is a pre-release version of `v1.0.0`.
It is also possible to publish a pre-release version by adding a suffix to the version number. For example, `cli_tools-v1.0.0-dev.1` is a pre-release version of `cli_tools-v1.0.0`.

## Create a new tag

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.