@aneoconsultingfr/generate-next-version
v0.0.5
Published
Generate a new version using latest commit messages and following the semantic versioning
Downloads
165
Readme
generate-next-version
Generate next version based on git history, use Conventional Commits.
Feature
- Generate version on edge
- Generate version on branch
- Generate version on release branch
Actions Usage
# .github/workflows/release.yml
name: Release
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: echo "VERSION=$(npx @aneoconsultingfr/generate-next-version@latest)" >> $GITHUB_ENV
It will be trigged whenever you push a tag to GitHub that starts with v
.
CLI Usage
npx @aneoconsultingfr/generate-next-version@latest [...args]
Arguments
--edge
- Generate version on edge--base
- Base branch to compare with--language
- Language of the project in order to generate next semver--help
- Display help message
Preview Locally
npx @aneoconsultingfr/generate-next-version@latest