Skip to content

Commit f6f2656

Browse files
committed
chore: 增加 provenance 配置
1 parent faac796 commit f6f2656

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/publish.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
jobs:
66
publish:
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
811
steps:
912
- uses: actions/checkout@v3
1013
- uses: actions/setup-node@v3
@@ -18,6 +21,6 @@ jobs:
1821
- name: Build
1922
run: npm run build
2023
- name: Publish
21-
run: npm publish
24+
run: npm publish --provenance --access public
2225
env:
2326
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aigc-detector",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Detect if content is generated by AI",
55
"keywords": [
66
"aigc",

0 commit comments

Comments
 (0)