Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aneoconsulting/generate-next-version
Generate a new version using latest commit messages and following the semantic versioning
https://github.com/aneoconsulting/generate-next-version
Last synced: about 1 month ago
JSON representation
Generate a new version using latest commit messages and following the semantic versioning
- Host: GitHub
- URL: https://github.com/aneoconsulting/generate-next-version
- Owner: aneoconsulting
- License: mit
- Created: 2023-05-05T14:08:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T18:59:34.000Z (8 months ago)
- Last Synced: 2024-05-29T10:06:23.911Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# generate-next-version
[![NPM version](https://img.shields.io/npm/v/@aneoconsultingfr/generate-next-version?color=fe5001&label=)](https://www.npmjs.com/package/@aneoconsultingfr/generate-next-version)
> Generate next version based on git history, use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
## Feature
- Generate version on edge
- Generate version on branch
- Generate version on release branch## Actions Usage
```yml
# .github/workflows/release.ymlname: Release
permissions:
contents: writeon:
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
```bash
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
```bash
npx @aneoconsultingfr/generate-next-version@latest
```## License
[MIT](./LICENSE) License © 2023 [Aneo](https://github.com/aneoconsulting)