Update .github/workflows/deploy-docker.yml
This commit is contained in:
21
.github/workflows/deploy-docker.yml
vendored
21
.github/workflows/deploy-docker.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user