chore: add config for workflow

This commit is contained in:
2026-03-24 15:08:50 +01:00
parent c1bb2a6244
commit 1381aff08e
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": {