You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon publishing, in order to apply a default "latest" dist tag, the command now retrieves all prior versions of the package. It will require that the version you're trying to publish is above the latest semver version in the registry, not including pre-release tags.
npm init now has a type prompt, and sorts the entries the created packages differently
bun.lockb files are now included in the strict ignore list during packing
Upon publishing, in order to apply a default "latest" dist tag, the command now retrieves all prior versions of the package. It will require that the version you're trying to publish is above the latest semver version in the registry, not including pre-release tags.
bun.lockb files are now included in the strict ignore list during packing
Upon publishing, in order to apply a default "latest" dist tag, the command now retrieves all prior versions of the package. It will require that the version you're trying to publish is above the latest semver version in the registry, not including pre-release tags.
Ensure git status is not dirty on this branch after resetting deps. If it is, then something is probably wrong with the automated release process.
gh pr checkout 7953 --force
npm run resetdeps
node scripts/git-dirty.js
2. Check CI status
gh pr checks --watch
3. Publish the CLI and workspaces
Warning:
This will publish all updated workspaces to latest, prerelease or backport depending on their version, and will publish the CLI with the dist-tag set to next-11.
Note:
The --test argument can optionally be omitted to run the publish process without running any tests locally.
node scripts/publish.js --test
4. Optionally install and test npm@11.0.0-pre.1 locally
npm i -g npm@11.0.0-pre.1
npm --version
npm whoami
npm help install
# etc
5. Trigger docs.npmjs.com update
gh workflow run update-cli.yml --repo npm/documentation
6. Approve and Merge release PR
gh pr review --approve
gh pr merge --rebase
git checkout latest
git fetch
git reset --hard origin/latest
node . run resetdeps
7. Wait For Release Tags
Warning:
The remaining steps all require the GitHub tags and releases to be created first. These are done once this PR has been labelled with autorelease: tagged.
Release Please will run on the just merged release commit and create GitHub releases and tags for each package. The release bot will will comment on this PR when the releases and tags are created.
Note:
The release workflow also includes the Node integration tests which do not need to finish before continuing.
You can watch the release workflow in your terminal with the following command:
gh run watch `gh run list -R npm/cli -w release -b latest -L 1 --json databaseId -q ".[0].databaseId"`
8. Mark GitHub Release as latest
Warning:
You must wait for CI to create the release tags before running this step. These are done once this PR has been labelled with autorelease: tagged.
Release Please will make GitHub Releases for the CLI and all workspaces, but GitHub has UI affordances for which release should appear as the "latest", which should always be the CLI. To mark the CLI release as latest run this command:
gh release -R npm/cli edit v11.0.0-pre.1 --latest
9. Open nodejs/node PR to update npm to latest
Warning:
You must wait for CI to create the release tags before running this step. These are done once this PR has been labelled with autorelease: tagged.
Trigger the Create Node PR action. This will open a PR on nodejs/node to the main branch.
Note:
The resulting PR may need to be labelled if it is not intended to land on old Node versions.
First, sync our fork of node with the upstream source:
Then, if we are opening a PR against the latest version of node:
gh workflow run create-node-pr.yml -f spec=next-11
If the PR should be opened on a different branch (such as when doing backports) then run it with -f branch=<BRANCH_NAME>. There is also a shortcut to target a specific Node version by specifying a major version number with -f branch=18 (or similar).
For example, this will create a PR on nodejs/node to the v16.x-staging branch:
gh workflow run create-node-pr.yml -f spec=next-11 -f branch=16
10. Label and fast-track nodejs/node PR
Note:
This requires being a nodejs collaborator. This could be you!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release beep boop
11.0.0-pre.1
11.0.0-pre.1 (2024-12-06)
npm initnow has atypeprompt, and sorts the entries the created packages differentlybun.lockbfiles are now included in the strict ignore list during packingFeatures
f3ac7b7#7939 no implicit latest tag on publish when latest > version (feat!: no implicit latest tag on publish when latest > version #7939) (@reggi, @ljharb)Bug Fixes
e362c6d#7944 prefix: remove duplicate -g from usage output (fix(prefix): remove duplicate -g from usage output #7944) (@wraithgar)Documentation
2af31dd#7947 change certfile to cafile (docs: change certfile to cafile #7947) (@wraithgar)1be8e95#7945 update ignore rules (@wraithgar)Dependencies
bc9b14d#7955@npmcli/run-script@9.0.2fecfcf4#7955node-gyp@11.0.08905037#7955p-map@7.0.2ac8eb39#7955diff@7.0.0c0bcc2a#7955walk-up-path@4.0.0d463a6f#7955init-package-json@8.0.0b87ba24#7945@npmcli/package-json@6.1.04bf1901#7945@npmcli/metavuln-calculator@9.0.0ca84b22#7945pacote@21.0.04906f3d#7945npm-packlist@10.0.0Chores
cfdf214#7943 fork changelog (chore: fork changelog #7943) (@wraithgar)@npmcli/arborist@9.0.0-pre.1@npmcli/config@10.0.0-pre.1libnpmdiff@8.0.0-pre.1libnpmexec@10.0.0-pre.1libnpmfund@7.0.0-pre.1libnpmorg@8.0.0-pre.1libnpmpack@9.0.0-pre.1arborist: 9.0.0-pre.1
9.0.0-pre.1 (2024-12-06)
bun.lockbfiles are now included in the strict ignore list during packingFeatures
f3ac7b7#7939 no implicit latest tag on publish when latest > version (feat!: no implicit latest tag on publish when latest > version #7939) (@reggi, @ljharb)Dependencies
c0bcc2a#7955walk-up-path@4.0.04bf1901#7945@npmcli/metavuln-calculator@9.0.0ca84b22#7945pacote@21.0.0config: 10.0.0-pre.1
10.0.0-pre.1 (2024-12-06)
Documentation
2af31dd#7947 change certfile to cafile (docs: change certfile to cafile #7947) (@wraithgar)Dependencies
c0bcc2a#7955walk-up-path@4.0.0libnpmdiff: 8.0.0-pre.1
8.0.0-pre.1 (2024-12-06)
bun.lockbfiles are now included in the strict ignore list during packingDependencies
ac8eb39#7955diff@7.0.0c0bcc2a#7955walk-up-path@4.0.0ca84b22#7945pacote@21.0.0@npmcli/arborist@9.0.0-pre.1libnpmexec: 10.0.0-pre.1
10.0.0-pre.1 (2024-12-06)
bun.lockbfiles are now included in the strict ignore list during packingDependencies
c0bcc2a#7955walk-up-path@4.0.0ca84b22#7945pacote@21.0.0@npmcli/arborist@9.0.0-pre.1libnpmfund: 7.0.0-pre.1
Dependencies
@npmcli/arborist@9.0.0-pre.1libnpmorg: 8.0.0-pre.1
8.0.0-pre.1 (2024-12-06)
Features
f3ac7b7#7939 no implicit latest tag on publish when latest > version (feat!: no implicit latest tag on publish when latest > version #7939) (@reggi, @ljharb)libnpmpack: 9.0.0-pre.1
9.0.0-pre.1 (2024-12-06)
bun.lockbfiles are now included in the strict ignore list during packingDependencies
ca84b22#7945pacote@21.0.0@npmcli/arborist@9.0.0-pre.1This PR was generated with Release Please. See documentation.