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