Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bassist/release

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bassist/release

Simple GitHub release generator by @chengpeiquan , based on GitHub CLI.

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@bassist/release

GitHub stars

Simple GitHub release generator by @chengpeiquan , based on GitHub CLI.

If you're tired of having to release every time on GitHub web, you can use this package to make it easier and just run a single command.

Prerequisite

For the security of your account and to avoid Token leakage, you must first install GitHub CLI and complete the login on it.

See: GitHub CLI

And make sure you have Release permissions on the project's GitHub repository.

There is another requirement, please configure the repository information of package.json according to the specifications of npm docs.

See: repository

e.g.

For single-package repo:

{
  "repository": {
    "type": "git",
    "url": "https://github.com/chengpeiquan/bassist"
  }
}

For monorepo, you can specify the directory in which it lives:

{
  "repository": {
    "type": "git",
    "url": "https://github.com/chengpeiquan/bassist",
    "directory": "packages/utils"
  }
}

Currently supported URL formats are:

  • https://github.com/chengpeiquan/bassist
  • https://github.com/chengpeiquan/bassist.git
  • github:chengpeiquan/bassist

Usage

This is a CLI tool, you can install it locally and run it through commands such as pnpm exec.

Install it:

pnpm add -D @bassist/release

In your package.json :

{
  "scripts": {
    "gen:release": "pnpm exec release"
  }
}

Run on command line:

pnpm gen:release

You can view the latest release information on the releases page of your GitHub repository.

Options

For most projects, the default settings are sufficient. If adjustments are sometimes needed, some options are provided to pass on.

On the command line, options can be passed to the program, e.g. --preset angular by option, or -p angular by short flag.

OptionShort FlagDefault ValueDescription
branchbmainThe branch where the CHANGELOG file is located
changelogcCHANGELOG.mdThe file name of the change log

Btw: The paths are all based on process.cwd() , which is usually run from the root directory of the package (the directory where package.json is located).

If there are any running problems, please provide a reproducible example in the issue .

Release Notes

Please refer to CHANGELOG for details.

License

MIT License © 2023-PRESENT chengpeiquan

Keywords

FAQs

Package last updated on 30 Jun 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