diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 980348c..60f997d 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -7,7 +7,28 @@ on: branches: [ "main" ] jobs: + bump-version: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config --global user.name "Gitea Actions" + git config --global user.email "actions@gitea.local" + + - name: Bump version in package.json + run: | + npm version patch --no-git-tag-version + git add package.json package-lock.json + git commit -m "chore: bump version [skip ci]" || echo "No changes to commit" + git push origin main + build-and-push: + needs: bump-version runs-on: ubuntu-latest steps: