@jict/changelogithub
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

changelogithub

This is forked from changelogithub and modified for our use.

NPM version

Generate changelog for GitHub releases from Conventional Commits, powered by changelogen.

👉 Changelog example

Features

  • Pull requests based changelog generation
  • Support exclamation mark as breaking change, e.g. chore!: drop node v10
  • Grouped scope in changelog
  • Create the release note, or update the existing one
  • List contributors

Usage

In GitHub Actions:

# .github/workflows/release.yml

name: Release

permissions:
  contents: write

on:
  push:
    tags:
      - 'v*'

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Set node version
        uses: actions/setup-node@v3
        with:
          node-version-file: .nvmrc

      - run: npx @jict/changelogithub
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

It will be trigged whenever you push a tag to GitHub that starts with v.

Configuration

You can put a configuration file in the project root, named as changelogithub.config.{json,ts,js,mjs,cjs}, .changelogithubrc or use the changelogithub field in package.json.

Preview Locally

npx @jict/changelogithub --dry

License

MIT License © 2023 justInCase, Inc.

Package Sidebar

Install

npm i @jict/changelogithub

Weekly Downloads

82

Version

0.0.16

License

MIT

Unpacked Size

74.8 kB

Total Files

13

Last publish

Collaborators

  • thundermiracle
  • hannoeru
  • justincase-tech