checkPlugin: Run npm ci before npm publish

This commit is contained in:
Richard Hansen 2022-02-24 20:56:49 -05:00
parent b4e0e15beb
commit d0cbf9754d

View file

@ -97,6 +97,10 @@ jobs:
npm ci npm ci
npm version patch npm version patch
git push --follow-tags 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 # `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 # 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 # updated with the commits from the second PR before the first PR's