Socket
Book a DemoInstallSign in
Socket

changelog-publish

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

changelog-publish

Move unreleased changes from CHANGELOG.md into a new release

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

changelog-publish

A tiny CLI tool for adding a version to unreleased changes in your changelog when you bump the package version on your Node.js project.

Usage

This tool assumes you're keeping a changelog with a 2nd-level header called "Unreleased" for unreleased changes, as per the keep a changelog spec.

1: Install it

Install the tool in your project:

npm install changelog-publish

2: Add a version script

In your package.json add a version entry under scripts:

{
  "scripts": {
    "version": "changelog-publish <your github URL> && git add CHANGELOG.md"
  }
}

Now, when you run npm version <patch|minor|major|whatever>, any changes in the Unreleased section will be moved into a section for your new package version.

The git add part is to make sure the changes to your changelog get included in the same commit as your version-bump.

That's it! That's all this tool does! Ta-da!

FAQs

Package last updated on 20 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.