Skip to content

Instantly share code, notes, and snippets.

@weilinzung
Forked from schmich/npm-prerelease.md
Created March 15, 2021 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weilinzung/98e3203b6b8860cac56ed22313ce72d6 to your computer and use it in GitHub Desktop.
Save weilinzung/98e3203b6b8860cac56ed22313ce72d6 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment