Skip to content

Commit

Permalink
preid isnt required anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukaato committed Aug 15, 2024
1 parent fcb9ec9 commit 64296ef
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,67 @@
# node-version-bumper
Github action for bump a new package version


# Usage
```yml
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"` | :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"` |
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ inputs:
commiter-name:
type: string
default: Node Version Bumper
required: true
required: false
commiter-email:
type: string
default: <>
Expand Down

0 comments on commit 64296ef

Please sign in to comment.