feat-ai(storage.js): 添加nodejs环境下的sqlite存储支持,调用方法与浏览器环境下保存一致

This commit is contained in:
windychen0
2026-06-06 19:51:30 +08:00
parent 4f8be6293d
commit 3994bca0ab
7 changed files with 418 additions and 90 deletions
+10 -10
View File
@@ -2,27 +2,27 @@ name: Node.js Build
on:
push:
branches: [ "main", "master" ]
branches: ["main", "master"]
pull_request:
branches: [ "main", "master" ]
branches: ["main", "master"]
jobs:
build:
runs-on: docker # 匹配你 runner 的标签
runs-on: docker # 匹配你 runner 的标签
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup npm for Verdaccio
run: |
npm config set registry http://verdaccio:4873/
npm config set //verdaccio:4873/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: npm i # 或 npm install
run: npm i --registry http://verdaccio:4873/ # 或 npm install
- name: Run build
run: npm run build
- name: Setup npm for Verdaccio
run: |
npm config set registry http://verdaccio:4873/
npm config set //verdaccio:4873/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Publish package
run: npm publish
run: npm publish