npm-version-tests

Basic repo to understand how works git tag with npm version and automate theses using npm scripts

Stars
1

Npm tests

  • Understand git tag and npm version
  • Understand npm publish
  • Generate a changelog
  • Make it working in a monorepo
  • Compile all in few commands (ci > tag > publish by eg.)

Release process

After committing, create a git tag using lerna.

# Update the version in package.json first, then create the tag
lerna version \
    --no-private \  # Only on usehooks-ts, others packages are now private
    --yes # skips `Are you sure you want to publish these packages?`

Lerna will never publish packages which are marked as private ("private": true in the package.json).