fix: use --no-verify and clean web source to prevent build.rs from re-running npm

This commit is contained in:
argenis de la rosa 2026-03-14 13:05:03 -04:00 committed by Roman Tataurov
parent e3ed98caa4
commit f6076d67ef
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B
2 changed files with 7 additions and 10 deletions

View File

@ -64,20 +64,17 @@ jobs:
- name: Build web dashboard
run: cd web && npm ci && npm run build
- name: Clean node_modules before packaging
run: rm -rf web/node_modules
- name: Verify package
run: cargo package --locked --allow-dirty
- name: Clean web build artifacts
run: rm -rf web/node_modules web/src web/package.json web/package-lock.json web/tsconfig*.json web/vite.config.ts web/index.html
- name: Publish (dry run)
if: inputs.dry_run
run: cargo publish --dry-run --locked --allow-dirty
run: cargo publish --dry-run --locked --allow-dirty --no-verify
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish to crates.io
if: "!inputs.dry_run"
run: cargo publish --locked --allow-dirty
run: cargo publish --locked --allow-dirty --no-verify
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

View File

@ -286,11 +286,11 @@ jobs:
- name: Build web dashboard
run: cd web && npm ci && npm run build
- name: Clean node_modules before packaging
run: rm -rf web/node_modules
- name: Clean web build artifacts
run: rm -rf web/node_modules web/src web/package.json web/package-lock.json web/tsconfig*.json web/vite.config.ts web/index.html
- name: Publish to crates.io
run: cargo publish --locked --allow-dirty
run: cargo publish --locked --allow-dirty --no-verify
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}