Skip to content

contribute publishing automation #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 15, 2023
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
14 changes: 14 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
pull_request:
branches: [ main ]
push:
tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ]

jobs:
publish:
if: ${{ github.repository_owner == 'dart-lang' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository is home to tooling related Dart packages.

| Package | Description | Version |
| --- | --- | --- |
| [dash_analytics](pkgs/dash_analytics/) | A package for logging analytics for all dash related tooling to Google Analytics | <!-- [![pub package](https://img.shields.io/pub/v/dash_analytics.svg)](https://pub.dev/packages/dash_analytics) --> |
| [dash_analytics](pkgs/dash_analytics/) | A package for logging analytics for all dash related tooling to Google Analytics. | <!-- [![pub package](https://img.shields.io/pub/v/dash_analytics.svg)](https://pub.dev/packages/dash_analytics) --> |

## Publishing automation

Expand Down
2 changes: 1 addition & 1 deletion pkgs/dash_analytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 0.1.0
## 0.1.0-dev

- Initial version.
2 changes: 1 addition & 1 deletion pkgs/dash_analytics/lib/src/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const int kLogFileLength = 2500;
const String kLogFileName = 'dash-analytics.log';

/// The current version of the package, should be in line with pubspec version
const String kPackageVersion = '0.1.0';
const String kPackageVersion = '0.1.0-dev';

/// The minimum length for a session
const int kSessionDurationMinutes = 30;
Expand Down
4 changes: 3 additions & 1 deletion pkgs/dash_analytics/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: dash_analytics
description: >-
A package for logging analytics for all dash related tooling to Google
Analytics.
version: 0.1.0
# When updating this, keep the version consistent with the changelog and the
# value in lib/src/constants.dart.
version: 0.1.0-dev
repository: https://github.com/dart-lang/tools/tree/main/pkgs/dash_analytics

environment:
Expand Down