deepspider 0.2.0 → 0.2.6

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,63 @@
1
+ # GitHub Actions - npm 自动发布
2
+ # 触发条件:推送 v* 标签时自动发布到 npm
3
+
4
+ name: Publish to npm
5
+
6
+ on:
7
+ push:
8
+ tags:
9
+ - 'v*'
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - uses: pnpm/action-setup@v4
18
+ with:
19
+ version: 9
20
+
21
+ - uses: actions/setup-node@v4
22
+ with:
23
+ node-version: '20'
24
+ cache: 'pnpm'
25
+
26
+ - run: pnpm install --no-frozen-lockfile --ignore-scripts
27
+ - run: pnpm lint
28
+
29
+ publish:
30
+ needs: test
31
+ runs-on: ubuntu-latest
32
+ permissions:
33
+ contents: read
34
+ id-token: write
35
+ steps:
36
+ - uses: actions/checkout@v4
37
+
38
+ - uses: pnpm/action-setup@v4
39
+ with:
40
+ version: 9
41
+
42
+ - uses: actions/setup-node@v4
43
+ with:
44
+ node-version: '20'
45
+ cache: 'pnpm'
46
+ registry-url: 'https://registry.npmjs.org'
47
+
48
+ - run: pnpm install --no-frozen-lockfile --ignore-scripts
49
+
50
+ - name: Verify NPM_TOKEN
51
+ run: |
52
+ if [ -z "${{ secrets.NPM_TOKEN }}" ]; then
53
+ echo "NPM_TOKEN is empty!"
54
+ exit 1
55
+ fi
56
+ echo "NPM_TOKEN length: ${#NPM_TOKEN}"
57
+ env:
58
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
59
+
60
+ - name: Publish to npm
61
+ run: npm publish
62
+ env:
63
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepspider",
3
- "version": "0.2.0",
3
+ "version": "0.2.6",
4
4
  "description": "智能爬虫工程平台 - 基于 DeepAgents + Patchright 的 AI 爬虫 Agent",
5
5
  "type": "module",
6
6
  "main": "src/index.js",