checkPlugin: Run `npm ci` before `npm publish`

pull/5436/head
Richard Hansen 2022-02-24 20:56:49 -05:00
parent b4e0e15beb
commit d0cbf9754d
1 changed files with 4 additions and 0 deletions

View File

@ -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