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