Skip to content

Instantly share code, notes, and snippets.

@alemures
Created March 5, 2023 20:17
Show Gist options
  • Save alemures/825d484e9f1796b0fb0bc1ebffa593c2 to your computer and use it in GitHub Desktop.
Save alemures/825d484e9f1796b0fb0bc1ebffa593c2 to your computer and use it in GitHub Desktop.

Publish npm package

  1. Build a tar package with npm pack and ensure the content looks ok.
  2. Run npm link in the package, npm link <package-name> in a different npm package and test the imports.
  3. Run npm version <version> to update the package version and create a git tag.
  4. Run npm publish to publish the package in https://npmjs.com.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment