From 77e5de20c88b49ae2c58cd536588b81bb147d2c3 Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Mon, 5 May 2025 15:13:45 -0700 Subject: [PATCH] fix(ci): set token before push --- .github/workflows/actions/publish-npm/action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions/publish-npm/action.yml b/.github/workflows/actions/publish-npm/action.yml index a4be534e..6b5db06d 100644 --- a/.github/workflows/actions/publish-npm/action.yml +++ b/.github/workflows/actions/publish-npm/action.yml @@ -35,9 +35,12 @@ runs: working-directory: ${{ inputs.working-directory }} - name: Set Git User run: | - git config user.name ionitron - git config user.email hi@ionicframework.com + git config user.name --global ionitron + git config user.email --global hi@ionicframework.com + git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/" shell: bash + env: + GITHUB_TOKEN: ${{ inputs.ghToken }} - name: Update Version run: npm version ${{ inputs.version }} shell: bash