Skip to content

Commit 558246b

Browse files
authored
922 auto detect feature increment in version number and then auto create new tag (#924)
* update version and changelog * add workflow to automatically create version tag on merge if version is incremented
1 parent 68dc659 commit 558246b

3 files changed

Lines changed: 41 additions & 1 deletion

File tree

.github/workflows/tag-version.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tag Version
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- develop
7+
permissions:
8+
contents: write
9+
jobs:
10+
tag-version:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v6
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Create tag if version is new
19+
run: |
20+
VERSION=$(node -p "require('./meta_configurator/package.json').version")
21+
TAG="v$VERSION"
22+
if git rev-parse "$TAG" >/dev/null 2>&1; then
23+
echo "Tag $TAG already exists, skipping."
24+
else
25+
git tag "$TAG"
26+
git push origin "$TAG"
27+
echo "Created and pushed tag $TAG."
28+
fi

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
---
1010

11+
## [2.2.0] - 2026-03-27
12+
13+
### Added
14+
15+
- Add word-wrap for text editor
16+
- Add `experimental` tag in the About page for the experimental deployment
17+
- Add workflow to automatically generate a git tag when a PR is merged into `main` or `develop` with an incremented version in the package.json
18+
19+
### Changed
20+
21+
- Update multiple dependencies (picomatch, handlebars, yaml)
22+
1123
## [2.1.0] - 2026-03-25
1224

1325
Initial versioned release. Introduces semantic versioning, a structured branching model (`develop` / `main`), and contribution guidelines.

meta_configurator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meta-configurator",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"private": true,
55
"scripts": {
66
"dev": "vite",

0 commit comments

Comments
 (0)