Merge pull request #105 from y574444354/fix/publish
ci(publish-npm): fix publish workflow
This commit is contained in:
commit
117a857b25
8
.github/workflows/publish-npm.yml
vendored
8
.github/workflows/publish-npm.yml
vendored
|
|
@ -107,18 +107,18 @@ jobs:
|
||||||
# - name: Run tests
|
# - name: Run tests
|
||||||
# run: bun test
|
# run: bun test
|
||||||
|
|
||||||
- name: Build for publish (Vite)
|
- name: Build for publish
|
||||||
run: bun run build:vite
|
run: bun run build
|
||||||
|
|
||||||
- name: Publish to npm
|
- name: Publish to npm
|
||||||
if: ${{ github.event.inputs.dry_run != 'true' }}
|
if: ${{ github.event.inputs.dry_run != 'true' }}
|
||||||
run: npm publish --provenance --access public --ignore-scripts
|
run: npm publish --provenance --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Publish to npm (dry-run)
|
- name: Publish to npm (dry-run)
|
||||||
if: ${{ github.event.inputs.dry_run == 'true' }}
|
if: ${{ github.event.inputs.dry_run == 'true' }}
|
||||||
run: npm publish --dry-run --provenance --access public --ignore-scripts
|
run: npm publish --dry-run --provenance --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user