@aneoconsultingfr/generate-next-version
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

generate-next-version

NPM 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

License

MIT License © 2023 Aneo

Readme

Keywords

Package Sidebar

Install

npm i @aneoconsultingfr/generate-next-version

Weekly Downloads

11

Version

0.0.5

License

MIT

Unpacked Size

16.5 kB

Total Files

12

Last publish

Collaborators

  • ngruel
  • esoubiran-aneo
  • npmjsaneo