@hongbusi/release

0.0.9 • Public • Published

A command-line tool to quickly create releases.

English | 简体中文

Usage

Install

pnpm add @hongbusi/release -D

Add script for package.json

{
  "scripts": {
    "release": "release"
  }
}

If you need to publish to npm, you need to add the parameter --publish

{
  "scripts": {
    "release": "release --publish"
  }
}

Add git action

on:
  push:
    tags:
      - 'v*'

name: Create Release

jobs:
  build:
    name: Create Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master
      - name: Create Release for Tag
        id: create_release
        uses: Hongbusi/create-release@main
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tag_name: ${{ github.ref }}

At this point, the configuration is complete, and enjoy it.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @hongbusi/release

Weekly Downloads

1

Version

0.0.9

License

ISC

Unpacked Size

8.58 kB

Total Files

9

Last publish

Collaborators

  • hongbusi