From 1b2d33402e5167c2b4fb4bfc24f6e06c01343f2b Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 18 Mar 2022 09:00:34 -0700 Subject: [PATCH] docs: add driver update instructions --- CONTRIBUTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7563b4a4..94474a83 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -49,6 +49,19 @@ Java interfaces for the current driver run the following commands: ./scripts/generate_api.sh ``` +#### Updating driver version + +Driver version is read from [scripts/CLI_VERSION](https://github.com/microsoft/playwright-java/blob/main/scripts/CLI_VERSION) and can be found in the upstream [GHA build](https://github.com/microsoft/playwright/actions/workflows/publish_canary.yml) logs. To update the driver to a particular version run the following commands: + +```bash +cat > scripts/CLI_VERSION + +^D +./scripts/download_driver_for_all_platforms.sh -f +./scripts/generate_api.sh +./scripts/update_readme.sh +``` + ### Code Style - We try to follow [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html)