Skip to content

Commit

Permalink
chore: 增加 provenance 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyurus committed May 27, 2024
1 parent faac796 commit f6f2656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -18,6 +21,6 @@ jobs:
- name: Build
run: npm run build
- name: Publish
run: npm publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aigc-detector",
"version": "1.0.7",
"version": "1.0.8",
"description": "Detect if content is generated by AI",
"keywords": [
"aigc",
Expand Down

0 comments on commit f6f2656

Please sign in to comment.