From 2a2ef629b0046f770f6a99f76b496be1435e8da1 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Tue, 23 Apr 2024 18:10:09 +0300 Subject: [PATCH] fix(CI): Add a git diff-index --- .github/workflows/npm-publish.yml | 1 + 1 file changed, 1 insertion(+) 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: