Skip to content

Commit

Permalink
set up npm provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed May 9, 2024
1 parent 33ba809 commit e955adf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build": "tsc && uglifyjs -cmo dist/index.js dist/index.js",
"lint": "eslint --ext .js,.ts,.jsx,.tsx --ignore-path .gitignore .",
"test": "vitest",
"trypublish": "npm publish || true"
"trypublish": "npm publish --provenance || true"
},
"peerDependencies": {
"react": "^16.9.0 || ^17.0.0 || ^18.0.0"
Expand Down

0 comments on commit e955adf

Please sign in to comment.