- Update 
package.json, setversionto a prerelease version, e.g.2.0.0-rc1,3.1.5-rc4, ... - Run 
npm packto create package - Run 
npm publish <package>.tgz --tag nextto publish the package under thenexttag - Run 
npm install --save package@nextto install prerelease package 
          Last active
          June 26, 2024 13:20 
        
      - 
      
 - 
        
Save schmich/d04acc4b02b45e489f329cfdf3280a3f to your computer and use it in GitHub Desktop.  
    Publish a prerelease package to NPM
  
        @LalitKushwah rc stands for "release candidate". This is a standard convention. https://stackoverflow.com/questions/41307500/what-does-the-rc-in-a-npm-package-version-structure
Great tip, thanks @schmich!
With yarn you can also do in one command:
yarn publish --tag next
If you want to publish a public package, do:
yarn publish --access public --tag next
    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
  
            
@schmich Why you have used 'rc' ? Can I use anything other like 1.0.0-SNAPSHOT.1, 1.0.0-SNAPSHOT.2, 1.0.0-SNAPSHOT.3 .....