diff --git a/.release-it.cjs b/.release-it.cjs index 425e9d313..42eb979b0 100644 --- a/.release-it.cjs +++ b/.release-it.cjs @@ -34,7 +34,10 @@ module.exports = { tokenRef: "JQUERY_GITHUB_TOKEN" }, npm: { - publish: true, - publishPath: "tmp/release/dist" + + // We're publishing from a dist folder generated in the post-release + // step, so we also need to publish by ourselves; release-it would + // do it too early. + publish: false } }; diff --git a/build/release/post-release.sh b/build/release/post-release.sh index 271c00734..d20949e3c 100644 --- a/build/release/post-release.sh +++ b/build/release/post-release.sh @@ -38,8 +38,9 @@ git commit -m "Release: $1" git tag -s $1 -m "Release: $1" # Wait for confirmation from user to push changes to dist repo -read -p "Press enter to push changes to dist repo" +read -p "Press enter to push changes to dist repo & publish to npm" git push --follow-tags +npm publish cd - # Restore AUTHORS URL