Skip to content

Instantly share code, notes, and snippets.

@schmich
Last active June 26, 2024 13:20
Show Gist options
  • Save schmich/d04acc4b02b45e489f329cfdf3280a3f to your computer and use it in GitHub Desktop.
Save schmich/d04acc4b02b45e489f329cfdf3280a3f to your computer and use it in GitHub Desktop.
Publish a prerelease package to NPM
  • Update package.json, set version to a prerelease version, e.g. 2.0.0-rc1, 3.1.5-rc4, ...
  • Run npm pack to create package
  • Run npm publish <package>.tgz --tag next to publish the package under the next tag
  • Run npm install --save package@next to install prerelease package
@PaulRBerg
Copy link

Now you can also do this with npm (v9.4.1 at the time of posting this):

npm publish --tag next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment