From d0cbf9754da1864ea157fd0e1630a03551959eb9 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 24 Feb 2022 20:56:49 -0500 Subject: [PATCH] checkPlugin: Run `npm ci` before `npm publish` --- src/bin/plugins/lib/npmpublish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/plugins/lib/npmpublish.yml b/src/bin/plugins/lib/npmpublish.yml index 9fc94ae7f..a2f85f71f 100644 --- a/src/bin/plugins/lib/npmpublish.yml +++ b/src/bin/plugins/lib/npmpublish.yml @@ -97,6 +97,10 @@ jobs: npm ci npm version patch git push --follow-tags + # This is required if the package has a prepare script that uses something + # in dependencies or devDependencies. + - + run: npm ci # `npm publish` must come after `git push` otherwise there is a race # condition: If two PRs are merged back-to-back then master/main will be # updated with the commits from the second PR before the first PR's