Skip to content

Commit 6abe461

Browse files
committed
fix: ci 构建 & 完善 package.json
1 parent 28ea977 commit 6abe461

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ jobs:
3838
run_install: |
3939
- args: [--frozen-lockfile]
4040
41+
- name: build
42+
run: pnpm run build
43+
4144
- name: release
4245
run: npx release-it --verbose
4346
env:
44-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
47+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4548
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"name": "@july_cm/react-notion",
33
"version": "0.0.1",
4+
"author": "July",
45
"type": "module",
56
"scripts": {
6-
"build": "rm -rf ./dist && tsc"
7+
"build": "rm -rf ./dist && tsc",
8+
"release": "release-it -ci"
79
},
810
"files": ["lib"],
911
"main": "./lib/index.js",
@@ -22,5 +24,13 @@
2224
},
2325
"peerDependencies": {
2426
"react": "^19.0.0"
27+
},
28+
"repository": {
29+
"type": "git",
30+
"url": "https://github.com/JxJuly/react-notion.git"
31+
},
32+
"homepage": "https://github.com/JxJuly/react-notion/blob/main/README.md",
33+
"bugs": {
34+
"url": "https://github.com/JxJuly/react-notion/issues"
2535
}
2636
}

0 commit comments

Comments
 (0)