Skip to content

Commit 4663fc8

Browse files
chore: Set up Git on version-bump job (#2772)
1 parent 3b7f30c commit 4663fc8

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
app_id: ${{ secrets.GH_APP_POSTHOG_JS_RELEASER_APP_ID }}
6565
private_key: ${{ secrets.GH_APP_POSTHOG_JS_RELEASER_PRIVATE_KEY }} # Secrets available only inside the `NPM Release` environment, requires approval from a maintainer
6666

67+
- name: Set up Git
68+
run: |
69+
git config user.name "github-actions[bot]"
70+
git config user.email "github-actions[bot]@users.noreply.github.com"
71+
6772
- name: Checkout repository
6873
uses: actions/checkout@v4
6974
with:
@@ -132,6 +137,11 @@ jobs:
132137
ref: main
133138
fetch-depth: 0
134139

140+
- name: Set up Git
141+
run: |
142+
git config user.name "github-actions[bot]"
143+
git config user.email "github-actions[bot]@users.noreply.github.com"
144+
135145
- name: Setup environment
136146
uses: ./.github/actions/setup
137147
with:
@@ -150,11 +160,6 @@ jobs:
150160
with:
151161
path: ${{ steps.get-package-path.outputs.path }}
152162

153-
- name: Set up Git
154-
run: |
155-
git config user.name "github-actions[bot]"
156-
git config user.email "github-actions[bot]@users.noreply.github.com"
157-
158163
- name: Install and build dependencies
159164
if: steps.check-package-version.outputs.is-new-version == 'true'
160165
run: pnpm install --frozen-lockfile && pnpm build

0 commit comments

Comments
 (0)