chore: add config for workflow
This commit is contained in:
@@ -21,13 +21,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION=${GITHUB_REF_NAME#v}
|
VERSION=${GITHUB_REF_NAME#v}
|
||||||
echo "Setting package version to $VERSION"
|
echo "Setting package version to $VERSION"
|
||||||
|
git fetch origin main
|
||||||
|
git checkout main
|
||||||
npm pkg set version="$VERSION"
|
npm pkg set version="$VERSION"
|
||||||
git config user.name "versioning"
|
git config user.name "versioning"
|
||||||
git config user.email "versioning@blassanto.me"
|
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 remote set-url origin https://x-token:${GITEA_TOKEN}@git.blassanto.me/blas/openapi-clean-arch-gen.git
|
||||||
git add package.json
|
git add package.json
|
||||||
git commit -m "chore: bump to version v${VERSION}"
|
git commit -m "chore: bump to version v${VERSION}"
|
||||||
git push origin HEAD:main
|
git push origin main
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user