mirror of
https://github.com/jquery/jquery.git
synced 2025-12-28 13:20:30 +00:00
Release: Run npm publish in the post-release phase
PR gh-5681 specified the `tmp/release/dist` folder as `publishPath` so that `npm publish` is done from the dist repo, not the source one. However, `npm publish` is invoked by release-it before the post-release phase, at which stage the dist repo is not updated with the new release yet. Instead, do the `npm publish` manually in the post-release stage, just after the dist repo is updated & changes are pushed. Closes gh-5690
This commit is contained in:
parent
fb5ab0f546
commit
ff1f0eaafd
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user