Skip to content

Commit e0c0bdd

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

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/publish.yml

Lines changed: 12 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,13 +56,15 @@ 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: |
67+
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
5868
npm publish --access public
5969
git push origin HEAD:main
6070
env:

0 commit comments

Comments
 (0)