grind_publish 0.0.1 copy "grind_publish: ^0.0.1" to clipboard
grind_publish: ^0.0.1 copied to clipboard

outdated

A library to automatically publish a package when its version increases.

example/example.dart

import 'package:grinder/grinder.dart';
import 'package:grind_publish/grind_publish.dart' as grind_publish;

@Task('Automatically publishes this package if the pubspec version increases')
autoPublish() async {
  // Will use the `ACCESS_TOKEN`, `REFRESH_TOKEN` and `EXPIRATION` env vars
  // as a configuration. If you want to name them differently, you can configure
  // `.fromEnvironment()`.
  final credentials = grind_publish.Credentials.fromEnvironment();

  grind_publish.autoPublish('your-package-name', credentials);
}
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A library to automatically publish a package when its version increases.

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

Dependencies

grinder, http, meta, path

More

Packages that depend on grind_publish