From 1fb74eba3bd315ff1e07649f52b4074bfed77bbe Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 14 Jun 2022 16:05:12 +0800 Subject: [PATCH] workflow: allow empty commits when updating the snapshot before publishing --- scripts/prepublish.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prepublish.mjs b/scripts/prepublish.mjs index ce053720..bd97a930 100644 --- a/scripts/prepublish.mjs +++ b/scripts/prepublish.mjs @@ -24,5 +24,5 @@ await $`git push --follow-tags` const projectRoot = path.resolve(__dirname, '../') cd(projectRoot) await $`git add playground` -await $`git commit -m 'chore: update snapshot'` +await $`git commit -m 'chore: update snapshot' --allow-empty` await $`git push --follow-tags` -- 2.39.5