ci: fix npm provenance

This commit is contained in:
三咲智子 Kevin Deng 2023-06-25 17:12:45 +08:00
parent 23029114e6
commit a5105297d7
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
3 changed files with 8 additions and 3 deletions

View File

@ -36,6 +36,7 @@ jobs:
run: pnpm i
- name: Publish to NPM
run: pnpm -r publish --provenance --access public --no-git-checks
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true

View File

@ -5,5 +5,9 @@
"author": "Amour1688 <lcz_1996@foxmail.com>",
"license": "MIT",
"main": "index.js",
"types": "index.d.ts"
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/babel-plugin-jsx"
}
}

View File

@ -10,7 +10,7 @@
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git"
"url": "git+https://github.com/vuejs/babel-plugin-jsx"
},
"scripts": {
"build": "tsup",