Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Aug 6, 2025

Summary

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.

Checklist

@mgol mgol added this to the 4.0.0 milestone Aug 6, 2025
@mgol mgol self-assigned this Aug 6, 2025
@mgol mgol requested a review from timmywil August 6, 2025 16:58
mgol added 2 commits August 11, 2025 18:31
PR jquerygh-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.
@mgol mgol force-pushed the release-npm-publish branch from 437b72f to a2a2102 Compare August 11, 2025 16:32
@mgol mgol requested a review from timmywil August 11, 2025 16:33
@mgol mgol merged commit ff1f0ea into jquery:main Aug 11, 2025
17 checks passed
@mgol mgol deleted the release-npm-publish branch August 11, 2025 16:40
@mgol mgol removed the Needs review label Aug 11, 2025
mgol added a commit that referenced this pull request Aug 11, 2025
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

(cherry picked from commit ff1f0ea)
@mgol mgol modified the milestones: 4.0.0, 3.8.0 Aug 11, 2025
@mgol mgol linked an issue Aug 18, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Make the jquery-dist repository published to npm, not jquery

2 participants