Skip to content

Node version bumper

Actions
Bump version for node package
v1.1
Latest
Star (0)

node-version-bumper

Github action for bump a new package version

Usage

name: Release

on:
  workflow_dispatch:
    inputs:
      version:
        description: Release type
        required: false
        type: choice
        default: patch
        options:
          - major
          - minor
          - patch
          - premajor
          - preminor
          - prepatch
          - prerelease
      preid:
        description: Pre-id
        required: false
        type: choice
        options:
          - ''
          - dev
          - alpha
          - beta
          - rc

jobs:
  version:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Bump version
        id: bump
        uses: CheeseGrinder/node-version-bumper@v1
        with:
          version: ${{ inputs.version }}
          preid: ${{ inputs.preid }}
          commiter-name: Cheese Grinder CI

      - name: Commit & Tag
        run: |
          git push
          git tag ${{ steps.bump.outputs.version }}
          git push origin tag ${{ steps.bump.outputs.version }}

Options

name value required default
node-version "string" "20.x"
npm-registry "string" "https://registry.npmjs.org/"
working-directory "string" "."
is-workspace "boolean" false
version "major" | "minor" | "patch" | "premajor" | "preminor" | "preminor" | "prerelease"
preid "string" ""
commiter-name "string" "Node Version Bumper"
commiter-email "string" "<>"
commit-message "string" "ci(version): bump to v%s"

Node version bumper is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Bump version for node package
v1.1
Latest

Node version bumper is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.