grind_publish 0.0.5 copy "grind_publish: ^0.0.5" to clipboard
grind_publish: ^0.0.5 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.
  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