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

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')
void autoPublish() async {
  // Will use the `ACCESS_TOKEN`, `REFRESH_TOKEN` and `EXPIRATION` env vars
  // as a configuration.
  final credentials = grind_publish.Credentials.fromEnvironment();

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

Publisher

unverified uploader

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

Repository (GitLab)
View/report issues
Contributing

License

MIT (LICENSE)

Dependencies

grinder, http, meta, path, pub_client, yaml

More

Packages that depend on grind_publish