Merge pull request #97 from y574444354/fix/compile-issue-0514-2

ci(publish-npm): pin bun version, add vite build, and ignore scripts
This commit is contained in:
linkai0924 2026-05-14 21:39:28 +08:00 committed by GitHub
commit 19a6ed1c1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,7 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2, 2026-04-25
with:
bun-version: latest
bun-version: "1.3.11"
- name: Setup SSH for review agent generation
uses: webfactory/ssh-agent@v0.9.0
@ -107,15 +107,18 @@ jobs:
# - name: Run tests
# run: bun test
- name: Build for publish (Vite)
run: bun run build:vite
- name: Publish to npm
if: ${{ github.event.inputs.dry_run != 'true' }}
run: npm publish --provenance --access public
run: npm publish --provenance --access public --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm (dry-run)
if: ${{ github.event.inputs.dry_run == 'true' }}
run: npm publish --dry-run --provenance --access public
run: npm publish --dry-run --provenance --access public --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}