Skip to content

Commit 99cfae1

Browse files
fix: use --no-verify and clean web source to prevent build.rs from re-running npm
1 parent 8a8f946 commit 99cfae1

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/publish-crates.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,17 @@ jobs:
6464
- name: Build web dashboard
6565
run: cd web && npm ci && npm run build
6666

67-
- name: Clean node_modules before packaging
68-
run: rm -rf web/node_modules
69-
70-
- name: Verify package
71-
run: cargo package --locked --allow-dirty
67+
- name: Clean web build artifacts
68+
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
7269

7370
- name: Publish (dry run)
7471
if: inputs.dry_run
75-
run: cargo publish --dry-run --locked --allow-dirty
72+
run: cargo publish --dry-run --locked --allow-dirty --no-verify
7673
env:
7774
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
7875

7976
- name: Publish to crates.io
8077
if: "!inputs.dry_run"
81-
run: cargo publish --locked --allow-dirty
78+
run: cargo publish --locked --allow-dirty --no-verify
8279
env:
8380
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/release-stable-manual.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ jobs:
286286
- name: Build web dashboard
287287
run: cd web && npm ci && npm run build
288288

289-
- name: Clean node_modules before packaging
290-
run: rm -rf web/node_modules
289+
- name: Clean web build artifacts
290+
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
291291

292292
- name: Publish to crates.io
293-
run: cargo publish --locked --allow-dirty
293+
run: cargo publish --locked --allow-dirty --no-verify
294294
env:
295295
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
296296

0 commit comments

Comments
 (0)