diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7870d38..5c52a78 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -31,6 +31,7 @@ jobs: with: version: latest - run: pnpm install + - run: git diff-index --quiet HEAD -- || { echo "Git working directory not clean."; exit 1; } - run: pnpm version patch - run: pnpm publish env: