npm-bump-from-label

Table of contents

  1. Description
  2. Usage
  3. Inputs

Description

このアクションは、GitHubのラベルに基づいてNPMパッケージのバージョンを自動的にアップデートし、更新されたパッケージファイルをリポジトリにプッシュします。

Gitタグは作成せず、タグのプッシュも行いません。

release/patchrelease/minorrelease/majorのいずれかのラベルがプルリクエストに適用された場合に使用します。

Usage

以下のようにワークフローに組み込んで使用します。

label-nameには、プルリクエストに適用されたバージョン更新用のラベルを指定し、必要に応じてcheckout-refを指定して、特定のGitリファレンスから作業を開始することができます。

steps:
  - name: Bump version and push package files
    uses: gawaooooo-sandbox/learn-github-actions-custom/composite/npm-auto-bump@v0 # This is the version of the action
    with:
      label-name: 'release/patch'

Inputs

Name Description Default Required
label-name バージョンを更新するラベル名
release/(patch|minor|major) のいずれかを指定します
n/a yes
checkout-ref チェックアウトするリファレンス ${{ github.head_ref || github.ref }} no
node-version-file Node.jsのバージョンを指定するファイルのパス .nvmrc no