| OLD | NEW |
| 1 Repository for building the [googleapis] and [googleapis_beta] packages. | 1 Repository for building the [googleapis] and [googleapis_beta] packages. |
| 2 | 2 |
| 3 **Workflow:** | 3 **Workflow:** |
| 4 | 4 |
| 5 - Update `pubspec.yaml` with new commit hash from the generator. | |
| 6 | |
| 7 - Run `pub upgrade` in this directory: | 5 - Run `pub upgrade` in this directory: |
| 8 | 6 |
| 9 $ rm -rf .pub | 7 $ rm -rf .pub |
| 10 $ pub upgrade | 8 $ pub upgrade |
| 11 | 9 |
| 12 - Download & generate APIs using the `config.yaml` configuration: | 10 - Download & generate APIs using the `config.yaml` configuration: |
| 13 | 11 |
| 14 $ pub run discovery_api_client_generator:generate run_config | 12 $ dart bin/generate.dart run_config |
| 15 | 13 |
| 16 - Diff with previous APIs and determine whether to do minor or major version | 14 - Diff with previous APIs and determine whether to do minor or major version |
| 17 update. Update CHANGELOG.md files in resources/. | 15 update. Update CHANGELOG.md files in resources/. |
| 18 | 16 |
| 19 - Update `config.yaml` with new version and generate again. | 17 - Update `config.yaml` with new version and generate again. |
| 20 | 18 |
| 21 - Run tests: | 19 - Run tests: |
| 22 | 20 |
| 23 $ pub global activate test_runner | 21 $ pub global activate test_runner |
| 24 $ pushd generated/googleapis | 22 $ pushd generated/googleapis |
| 25 $ pub get | 23 $ pub get |
| 26 $ pub global run test_runner | 24 $ pub global run test_runner |
| 27 $ cd ../googleapis_beta | 25 $ cd ../googleapis_beta |
| 28 $ pub get | 26 $ pub get |
| 29 $ pub global run test_runner | 27 $ pub global run test_runner |
| 30 $ popd | 28 $ popd |
| 31 | 29 |
| 32 - Commit downloaded discovery documents and generated packages. | 30 - Commit downloaded discovery documents and generated packages. |
| 33 | 31 |
| 34 - Upload packages to pub. | 32 - Upload packages to pub. |
| 35 | 33 |
| 36 [googleapis]: https://pub.dartlang.org/packages/googleapis | 34 [googleapis]: https://pub.dartlang.org/packages/googleapis |
| 37 [googleapis_beta]: https://pub.dartlang.org/packages/googleapis_beta | 35 [googleapis_beta]: https://pub.dartlang.org/packages/googleapis_beta |
| OLD | NEW |