Skip to content

Commit 535b8ed

Browse files
authored
chore(ci): use correct github credentials for pushing (#28806)
The update-package-lock job did not configure Git credentials correctly. As a result, the job is unable to push the `package-lock.json` changes to the repo: https://github.com/ionic-team/ionic-framework/actions/runs/7476310958/job/20346663176 This PR configures the job with the correct credentials.
1 parent 076c9fe commit 535b8ed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ jobs:
7979
runs-on: ubuntu-latest
8080
steps:
8181
- uses: actions/checkout@v3
82+
- name: Configure Identity
83+
# Commits from github-actions do not
84+
# trigger other GitHub Actions. As a result,
85+
# we push from Ionitron instead so actions
86+
# run when merging the release branch
87+
# back into main.
88+
run: |
89+
git config user.name ionitron
90+
git config user.email [email protected]
91+
shell: bash
8292
# Lerna does not automatically bump versions
8393
# of Ionic dependencies that have changed,
8494
# so we do that here.
@@ -88,6 +98,8 @@ jobs:
8898
git add .
8999
git commit -m "chore(): update package lock files"
90100
git push
101+
env:
102+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91103
shell: bash
92104

93105
purge-cdn-cache:

0 commit comments

Comments
 (0)