chore: add config for workflow #29

Merged
blas merged 1 commits from chore/fix-workflow-versioning into main 2026-03-24 14:09:19 +00:00
2 changed files with 15 additions and 1 deletions

View File

@@ -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

View File

@@ -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": {