@vill-v/bumpp-gitcode 4.2.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,14 +8,12 @@
8
8
 
9
9
  ## 设置 gitcode access_token
10
10
 
11
- 在node项目下,或者用户目录下 创建 `.vbumpprc` 文件
12
-
13
- 配置文件示例
14
-
15
- ```npmrc
16
- accesstoken.gitcode=tokenxxxxx
11
+ ```shell
12
+ vbumpp token set gitcode
17
13
  ```
18
14
 
15
+ token 加密后以二进制形式安全存储
16
+
19
17
  ## 简单使用
20
18
 
21
19
  ```shell
@@ -4,6 +4,7 @@ import consola from "consola";
4
4
  //#region src/bump.ts
5
5
  const createGitcodeRelease = async (options) => {
6
6
  const access_token = options.config.accesstoken?.gitcode;
7
+ if (!access_token) throw new Error("未检测到 GitCode token,请执行 vbumpp token set gitcode 录入");
7
8
  await (await createGithubLikeRelease({
8
9
  baseURL: "https://api.gitcode.com/api/v5",
9
10
  onRequest(context) {
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as bumpVersion } from "./bump-BcYw_BGc.js";
1
+ import { t as bumpVersion } from "./bump-DW_w9qLK.js";
2
2
  import { createBaseCli } from "@vill-v/bumpp/cli";
3
3
  //#region src/cli.ts
4
4
  const createCli = () => createBaseCli(bumpVersion);
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as bumpVersion } from "./bump-BcYw_BGc.js";
1
+ import { t as bumpVersion } from "./bump-DW_w9qLK.js";
2
2
  import { defineConfig } from "@vill-v/bumpp";
3
3
  export { bumpVersion, defineConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vill-v/bumpp-gitcode",
3
- "version": "4.2.0",
3
+ "version": "5.0.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "whitekite",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "consola": "^3.4.2",
33
- "@vill-v/bumpp": "4.2.0",
34
- "@vill-v/bumpp-github": "4.2.0"
33
+ "@vill-v/bumpp": "5.0.0",
34
+ "@vill-v/bumpp-github": "5.0.0"
35
35
  },
36
36
  "engines": {
37
37
  "node": "^20.19.0 || >=22.12.0"