github-craftchangelogs
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

github-craftchangelogs

NPM version

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

Features

  • 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

      - uses: actions/setup-node@v3
        with:
          node-version: 16.x

      - run: npx github-craftchangelogs # or github-craftchangelogs@0.12 if ensure the stable result
        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 github-craftchangelogs.config.{json,ts,js,mjs,cjs}, .github-craftchangelogsrc or use the github-craftchangelogs field in package.json.

Preview Locally

npx github-craftchangelogs --dry

License

MIT License © 2022 Dennis Ollhoff [nyxb]

Package Sidebar

Install

npm i github-craftchangelogs

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

44.2 kB

Total Files

14

Last publish

Collaborators

  • dennisollhoff