From 1381aff08e3012c9a2ce5f7bc183c4f366142aa5 Mon Sep 17 00:00:00 2001 From: blas Date: Tue, 24 Mar 2026 15:08:50 +0100 Subject: [PATCH] chore: add config for workflow --- .gitea/workflows/publish.yml | 14 ++++++++++++++ package.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 2a290ff..47d49b4 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -17,6 +17,20 @@ jobs: with: node-version: '20' + - name: Set version from tag + run: | + VERSION=${GITHUB_REF_NAME#v} + echo "Setting package version to $VERSION" + npm pkg set version="$VERSION" + git config user.name "versioning" + git config user.email "versioning@blassanto.me" + git remote set-url origin https://x-token:${GITEA_TOKEN}@git.blassanto.me/blas/openapi-clean-arch-gen.git + git add package.json + git commit -m "chore: bump to version v${VERSION}" + git push origin HEAD:main + env: + GITEA_TOKEN: ${{ secrets.TOKEN }} + - name: Install dependencies run: npm ci diff --git a/package.json b/package.json index 764edff..278168c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@blas/openapi-clean-arch-generator", - "version": "1.0.0", + "version": "0.0.1", "description": "Generador de código Angular con Clean Architecture desde OpenAPI/Swagger", "main": "dist/main.js", "bin": {