فهرست منبع

fix(covector): keep `tauri-driver` version as alpha

Lucas Nogueira 4 سال پیش
والد
کامیت
c22e5a7c2e
3فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 2 1
      .changes/config.json
  2. 1 1
      .changes/tauri-driver.md
  3. 5 1
      .scripts/sync-prerelease.js

+ 2 - 1
.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 }"
     }
   }
 }

+ 1 - 1
.changes/tauri-driver.md

@@ -1,5 +1,5 @@
 ---
-"tauri-driver": patch
+"tauri-driver": minor
 ---
 
 Initial release including Linux and Windows support.

+ 5 - 1
.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}`)
 }