From f99eb7eb90e5ed5211812752c4e15497d8893e19 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 19 Jan 2022 16:55:56 +0800 Subject: [PATCH] chore: automatically update the playground submodule pointer --- scripts/prepublish.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/prepublish.mjs b/scripts/prepublish.mjs index e3a31dcc..5339ef32 100644 --- a/scripts/prepublish.mjs +++ b/scripts/prepublish.mjs @@ -20,3 +20,9 @@ try { await $`git tag -m "v${version}" v${version}` 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 push` -- 2.39.5