Skip to content

Commit 6b21bfe

Browse files
amit-mnnitAmit Kumar
authored andcommitted
Update publish.yml
1 parent 6ffd800 commit 6b21bfe

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
id: get_version
3535
run: echo ::set-output name=version::$(node -p "require('./package.json').version")
3636

37+
- name: Config git
38+
run: |
39+
git config --global user.email "ci-build@aemforms"
40+
git config --global user.name "ci-build"
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.ADOBE_GH_TOKEN }}
43+
GH_TOKEN: ${{ secrets.ADOBE_GH_TOKEN }}
44+
3745
- name: Bump version
3846
id: bump_version
3947
run: |
@@ -48,10 +56,11 @@ jobs:
4856
4957
- name: Commit and push changes
5058
run: |
51-
git config --global user.email "ci-build@aemforms"
52-
git config --global user.name "ci-build"
5359
git add package.json
5460
git commit -m "Bump version to ${{ steps.bump_version.outputs.new_version }}"
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.ADOBE_GH_TOKEN }}
63+
GH_TOKEN: ${{ secrets.ADOBE_GH_TOKEN }}
5564

5665
- name: Publish to npm
5766
run: |

0 commit comments

Comments
 (0)