New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zhid0399123/relit

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

@zhid0399123/relit

Create release notes from changelog.md file

  • 0.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

relit - Release Notes Generator

Streamline the generation of release notes from your changelog file effortlessly. Whether you're managing a large-scale project or a smaller development effort, Relit empowers you to create professional and comprehensive release notes with ease. Relit read the changelog file from top to bottom and create release file from it. Relit relies on version tags in the changelog as the parssing boundary. The version tags should follow sermantic versioning (vX.Y.Z).

Test Publish npm npm License js-standard-style

Installation

To install relit into your project, run:

npm i @zhid0399123/relit

NOTE: Relit is also available as a command line interface which enables you to generate release notes effortlessly from the terminal. To install relit cli run:

npm i -g @zhid0399123/relit

For available commands, run:

relit help

Example

To use it in your project, configure relit in your package.json file by running the following command:

npm pkg set scripts.relit=relit

To generate release text later on, run:

npm run relit

Above command will read CHANGELOG.md and generate RELEASE.md file in the root directory of the project. By default, the file to read from is CHANGELOG.md and output file to write to is RELEASE.md

Options

To customize the default behaviour of relit, you can pass several options when runing relit.

  1. --read|| -r: Specify the dir/filename from which relit should read from. Example:
npm run relit --read "CHANGELOG.md"
  1. --out|| -o: Specify the dir/filename to which relit should output/write. Example:
npm run relit --out "RELEASE.md"
  1. --count|| -c: Specify the number of releases that should be written to the output file. Example:
npm run relit --count 1

CI/CD

For automation purposes, relit can be used together with softprops/action-gh-release to generate release notes on tags push. Below is the workflow example that impliment relit and softprops/action-gh-release to generate release notes.

name: Release
on:
 push:
  tags:
    - "v*.*.*"
permissions:
  contents: read

jobs:
  releae:
    permissions:
    contents: write  # for softprops/action-gh-release to create GitHub release
    runs-on: ubuntu-latest
    environment: release
    steps:
    - name: Checkout
        uses: actions/checkout@v4
    - name: Install Node.js
        uses: actions/setup-node@v4
        with:
        node-version: 21
        name: Install dependencies
        run: npm ci
    - name: Publish Packages
        env:
            NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
        run: |
        npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" # pnpm config set is broken
        pnpm release
    - name: Generate release description
        run: pnpm run relit
    - name: Release
        uses: softprops/action-gh-release@v1
        with:
        draft: true
        files: dist/*
        body_path: RELEASE.md


TODO

Tailor release notes to meet your project's specific requirements using customizable templates and formatting options.

Contributing

We welcome contributions and suggestions to enhance the functionality and robustness of the relit. Please refer to the Contributing Guidelines to get started.

Copyright (c) 2024 Zidikhery Mchomvu

Licensed under the MIT License.

Keywords

FAQs

Package last updated on 30 Jan 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc