Skip to content

Commit 54e9a9d

Browse files
hi-ogawasapphi-red
andauthored
ci: use trusted publisher (#873)
Co-authored-by: 翠 <[email protected]>
1 parent 8293cb3 commit 54e9a9d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ jobs:
5050
run: pnpm build
5151

5252
- name: Publish package
53-
run: pnpm run ci-publish ${{ github.ref_name }}
54-
env:
55-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53+
run: npm i -g npm@^11.5.2 && pnpm run ci-publish ${{ github.ref_name }}
5654

5755
- if: steps.tag.outputs.isAlpha == 'false' && steps.tag.outputs.pkgName != 'plugin-rsc'
5856
uses: ArnaudBarre/github-release@4fa6eafe8e2449c7c1c5a91ae50de4ee34db0b40 # v1.5.0

scripts/publishCI.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { publish } from '@vitejs/release-scripts'
22

33
publish({
4-
provenance: true,
54
getPkgDir(pkg) {
65
if (pkg === 'plugin-react-swc') {
76
return `packages/${pkg}/dist`

0 commit comments

Comments
 (0)