From a14ad8cc93a61ed4349c5d00bebc6569abaea541 Mon Sep 17 00:00:00 2001 From: Emre Date: Wed, 3 Jul 2024 13:52:44 +0300 Subject: [PATCH] fix: Update workflows --- .github/workflows/deployment.yml | 2 ++ .github/workflows/release.yml | 3 ++- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index bf13d0a..7ee4360 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -17,6 +17,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Docker meta diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f002f3f..98c5571 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,8 +31,9 @@ jobs: - name: Install dependencies run: pnpm install - name: Release + if: !startsWith(github.event.head_commit.message, 'chore(release):') env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GIT_PAT }} GIT_AUTHOR_NAME: ${{ vars.GIT_NAME }} GIT_AUTHOR_EMAIL: ${{ vars.GIT_EMAIL }} GIT_COMMITTER_NAME: ${{ vars.GIT_NAME }} diff --git a/package.json b/package.json index c530700..9a98ff2 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "assets": [ "package.json" ], - "message": "chore(release): Release ${nextRelease.version} [skip release]" + "message": "chore(release): Release ${nextRelease.version}" } ] ]