Skip to content

Commit 286881d

Browse files
authored
chore: add git status check to validate:publish:npm script (#564)
Added `git status` command to the `validate:publish:npm` script to display the current state of the repository before performing a dry-run publish. This helps verify that all changes are properly committed and the working directory is clean before attempting to publish packages to npm.
1 parent acdf074 commit 286881d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "nx run-many --target=build --all",
88
"version": "pnpm changeset version && ./scripts/update-jsr-json-version.sh",
9-
"validate:publish:npm": "pnpm nx run-many -t build --exclude=demo,website,example-flows && pnpm publish --dry-run --provenance --recursive --filter=!./pkgs/edge-worker",
9+
"validate:publish:npm": "pnpm nx run-many -t build --exclude=demo,website,example-flows && git status && pnpm publish --dry-run --provenance --recursive --filter=!./pkgs/edge-worker",
1010
"validate:publish:jsr": "cd ./pkgs/edge-worker && jsr publish --dry-run --allow-slow-types",
1111
"validate:publish": "pnpm run validate:publish:npm && pnpm run validate:publish:jsr",
1212
"publish:npm": "pnpm nx run-many -t build --exclude=demo,website,example-flows && pnpm publish --provenance --recursive --filter=!./pkgs/edge-worker",

0 commit comments

Comments
 (0)