From c22e5a7c2ebede41657973b80eff6b68106817fc Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 23 Jun 2021 14:18:26 -0300 Subject: [PATCH] fix(covector): keep `tauri-driver` version as alpha --- .changes/config.json | 3 ++- .changes/tauri-driver.md | 2 +- .scripts/sync-prerelease.js | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.changes/config.json b/.changes/config.json index 80e105ed2..ffa43dcf3 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -293,7 +293,8 @@ }, "tauri-driver": { "path": "./tooling/webdriver", - "manager": "rust" + "manager": "rust", + "postversion": "node ../../.scripts/sync-prerelease.js ${ pkg.pkg } ${ release.type }" } } } diff --git a/.changes/tauri-driver.md b/.changes/tauri-driver.md index f71f35af3..70d3b4623 100644 --- a/.changes/tauri-driver.md +++ b/.changes/tauri-driver.md @@ -1,5 +1,5 @@ --- -"tauri-driver": patch +"tauri-driver": minor --- Initial release including Linux and Windows support. diff --git a/.scripts/sync-prerelease.js b/.scripts/sync-prerelease.js index 2f6b73e45..38d09ec4b 100644 --- a/.scripts/sync-prerelease.js +++ b/.scripts/sync-prerelease.js @@ -5,7 +5,7 @@ /* This script is solely intended to be run as part of the `covector version` step to -keep the `tauri-release` crate version without the `beta` or `beta-rc` suffix. +keep the `tauri-runtime`, `tauri-runtime-wry` and `tauri-driver` crates version without the `beta` or `beta-rc` suffix. */ const { readFileSync, writeFileSync } = require("fs") @@ -25,6 +25,10 @@ if (packageNickname === 'tauri-runtime') { manifestPath = '../../core/tauri-runtime-wry/Cargo.toml' dependencyManifestPaths = ['../../core/tauri/Cargo.toml'] changelogPath = '../../core/tauri-runtime-wry/CHANGELOG.md' +} else if (packageNickname === 'tauri-driver') { + manifestPath = '../../tooling/webdriver/Cargo.toml' + dependencyManifestPaths = [] + changelogPath = '../../tooling/webdriver/CHANGELOG.md' } else { throw new Error(`Unexpected package ${packageNickname}`) }