npm-bump-from-label
Table of contents
Description
このアクションは、GitHubのラベルに基づいてNPMパッケージのバージョンを自動的にアップデートし、更新されたパッケージファイルをリポジトリにプッシュします。
Gitタグは作成せず、タグのプッシュも行いません。
release/patch
、release/minor
、release/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 |