Merge pull request 'chore: add config for workflow' (#30) from chore/fix-checkout-publish into main
Some checks failed
Publish npm package / publish (push) Failing after 44s

Reviewed-on: #30
This commit was merged in pull request #30.
This commit is contained in:
2026-03-24 14:28:11 +00:00

View File

@@ -21,13 +21,15 @@ jobs:
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "Setting package version to $VERSION"
git fetch origin main
git checkout main
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
git push origin main
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}