You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github-release-from-cc-changelog

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-release-from-cc-changelog

Create/update Github release notes from a CHANGELOG

2.3.0
latest
Source
npmnpm
Version published
Weekly downloads
5.6K
131.43%
Maintainers
1
Weekly downloads
 
Created
Source

Build status Tests coverage npm version

github-release-from-cc-changelog

Retrieve release notes from CHANGELOG.md (as generated by standard-version) and post them to GitHub

Installation

npm i -g github-release-from-cc-changelog

Prerequisites

  • Github url needs to be configured at package.json repository field
  • Ensure GitHub access token available at CONVENTIONAL_GITHUB_RELEASER_TOKEN (or GITHUB_TOKEN) environment variable. The scopes for the token you need is public_repo or repo (if you need to access private repos).
  • Tags for given versions need to exist in GitHub repository before pushing release notes. Tags need to follow format of v<version>, or in case of multi-package repositories follow format of <packageName>@<version>

Usage

CLI

At package directory run:

github-release-from-cc-changelog <versionTag>

e.g.

github-release-from-cc-changelog v1.0.0

Resolve and publish notes for all versions

At package directory run:

github-release-all-from-cc-changelog

By default v is assumed as tag postfix. In case of multi package repositories this can be overriden by passing --tag-prefix e.g.:

github-release-all-from-cc-changelog --tag-prefix=subpackage@

Dump release notes for given version

Useful also to verify whether notes for given version can be retrieved

At package directory run:

dump-release-notes-from-cc-changelog <versionTag>

Programmatically

const releaseFromChangelog = require("github-release-from-cc-changelog");

releaseFromChangelog(packageDirectory, versionTag).then(() => {
  console.log(`Successfully pushed release notes for "${ versionTag }"`);
});

Reseolve and publish notes for all versions

const releaseAllFromChangelog = require("github-release-from-cc-changelog/all");

releaseFromChangelog(packageDirectory).then(() => {
  console.log(`Successfully pushed and released notes for all versions`);
});

Test

npm test

Keywords

conventional-commits

FAQs

Package last updated on 05 Apr 2022

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