Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cheesegrinder/node-version-bumper
Github action for bump a new package version
https://github.com/cheesegrinder/node-version-bumper
Last synced: 8 days ago
JSON representation
Github action for bump a new package version
- Host: GitHub
- URL: https://github.com/cheesegrinder/node-version-bumper
- Owner: CheeseGrinder
- License: mit
- Created: 2024-08-14T15:24:49.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T11:36:57.000Z (3 months ago)
- Last Synced: 2024-08-15T17:48:40.514Z (3 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-version-bumper
Github action for bump a new package version# Usage
```yml
name: Releaseon:
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
- rcjobs:
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"` | :x: | `"20.x"` |
| `npm-registry` | `"string"` | :x: | `"https://registry.npmjs.org/"` |
| `working-directory` | `"string"` | :x: | `"."` |
| `is-workspace` | `"boolean"` | :x: | `false` |
| `version` | `"major" \| "minor" \| "patch" \| "premajor" \| "preminor" \| "preminor" \| "prerelease"` | :white_check_mark: | |
| `preid` | `"string"` | :x: | `""` |
| `commiter-name` | `"string"` | :x: | `"Node Version Bumper"` |
| `commiter-email` | `"string"` | :x: | `"<>"` |
| `commit-message` | `"string"` | :x: | `"ci(version): bump to v%s"` |