File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,28 @@ $ npx tauri-version major # `v0.0.2` -> `v1.0.0` - Commit message `1.0.0`
27
27
$ npx tauri-version 123 # `v0.0.2` -> `v123` - 自定义版本。 commit message `123`
28
28
```
29
29
30
+ 推荐使用 ` pnpx ` 以运行最新版本的` tauri-version ` 。
31
+
32
+ ``` sh
33
+ $ pnpx tauri-version patch
34
+
35
+ # 等价于:
36
+
37
+ $ npx tauri-version@latest patch
38
+ ```
39
+
30
40
### 自定义commit message
31
41
32
42
提交消息中的 ` %s ` 将会被替换为版本号。
33
43
34
44
` npx tauri-version patch -m "chore: release v%s" `
35
45
这将会将 commit message 改为:
36
46
` chore: release v0.0.2 `
47
+
48
+ ### 阻止 ` git commit `
49
+
50
+ ` tauri-version patch --no-git `
51
+
52
+ ### 选项
53
+
54
+ 使用 ` tauri-version -h ` 以查看完整的帮助信息。
Original file line number Diff line number Diff line change @@ -27,10 +27,28 @@ $ npx tauri-version major # `v0.0.2` -> `v1.0.0` - Commit message `1.0.0`
27
27
$ npx tauri-version 123 # `v0.0.2` -> `v123` - Customize version. commit message `123`
28
28
```
29
29
30
+ Recommended to use ` pnpx ` to use the latest version of ` tauri-version ` .
31
+
32
+ ``` sh
33
+ $ pnpx tauri-version patch
34
+
35
+ # Equal to:
36
+
37
+ $ npx tauri-version@latest patch
38
+ ```
39
+
30
40
### Custom Commit Message
31
41
32
42
` %s ` in commit message will be replaced by version.
33
43
34
- ` npx tauri-version patch -m "chore: release v%s"`
44
+ ` tauri-version patch -m "chore: release v%s" `
35
45
This will change the commit message to:
36
46
` chore: release v0.0.2 `
47
+
48
+ ### Prevent ` git commit `
49
+
50
+ ` tauri-version patch --no-git `
51
+
52
+ ### Options
53
+
54
+ Use ` tauri-version -h ` to see the whole help message.
You can’t perform that action at this time.
0 commit comments