Skip to content

Commit 77e5de2

Browse files
fix(ci): set token before push
1 parent 17ea00e commit 77e5de2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/actions/publish-npm/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ runs:
3535
working-directory: ${{ inputs.working-directory }}
3636
- name: Set Git User
3737
run: |
38-
git config user.name ionitron
39-
git config user.email hi@ionicframework.com
38+
git config user.name --global ionitron
39+
git config user.email --global hi@ionicframework.com
40+
git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
4041
shell: bash
42+
env:
43+
GITHUB_TOKEN: ${{ inputs.ghToken }}
4144
- name: Update Version
4245
run: npm version ${{ inputs.version }}
4346
shell: bash

0 commit comments

Comments
 (0)