chore: add config for workflow
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user