Skip to content

Commit

Permalink
fix(ci): authenticate with token
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Feb 28, 2025
1 parent 0d4cf54 commit 860db37
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/actions/publish-npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ runs:
run: rm stencil-sass-build.zip
shell: bash

- name: Configure Git
if: inputs.tag == 'latest'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
shell: bash

- name: Bump Version
if: inputs.tag == 'dev'
run: npm version --no-git-tag-version ${{ inputs.version }}
Expand All @@ -71,7 +64,11 @@ runs:

- name: Push Version
if: inputs.tag == 'latest'
run: git push origin main
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git push origin main
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
Expand Down

0 comments on commit 860db37

Please sign in to comment.