@xiaokexiang/db-cli 0.2.1 → 0.2.2

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.
@@ -0,0 +1,34 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: '20'
17
+ registry-url: 'https://registry.npmjs.org'
18
+
19
+ - name: Get version from tag
20
+ id: get_version
21
+ run: |
22
+ VERSION=${GITHUB_REF#refs/tags/v}
23
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
24
+
25
+ - name: Update package.json version
26
+ run: |
27
+ NEW_VERSION="${{ steps.get_version.outputs.version }}"
28
+ npm version $NEW_VERSION --no-git-tag-version --allow-same-version
29
+
30
+ - run: npm install
31
+
32
+ - run: npm publish --access public
33
+ env:
34
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DB-CLI - 多数据库命令行工具
2
2
 
3
- 一个基于 Node.js 的多数据库 CLI 工具,支持 MySQL 和达梦数据库的 SQL 导入、导出和执行。
3
+ 多数据库 CLI 工具,支持 MySQL 和达梦数据库的 SQL 导入、导出和执行。
4
4
 
5
5
  ## 安装
6
6
  ### 全局安装(推荐)
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@xiaokexiang/db-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "main": "db-cli.js",
6
6
  "scripts": {
7
7
  "db-cli": "node --openssl-legacy-provider db-cli.js"
8
8
  },
9
9
  "bin": {
10
- "db-cli": "./bin.cjs"
10
+ "db-cli": "./src/bin.cjs"
11
11
  },
12
12
  "keywords": [
13
13
  "database",
File without changes
File without changes