From 94ebe9be64266375d3d10d4710a8b3e24fbffd2a Mon Sep 17 00:00:00 2001 From: DimaDemchenko Date: Mon, 18 Mar 2024 13:10:48 +0200 Subject: [PATCH] removed auto commit --- .github/workflows/npm-publish.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index bfcb80e0..52e960f9 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -35,25 +35,6 @@ jobs: node update-versions.js working-directory: ./scripts - - name: Get branch name associated with tag - id: get-branch - run: | - TAG_COMMIT_SHA=$(git rev-list -n 1 ${{ github.ref }}) - git fetch --prune - BRANCH_NAME=$(git branch -r --contains $TAG_COMMIT_SHA | sed 's/origin\///' | sed '/HEAD/d' | xargs) - echo "BRANCH=$BRANCH_NAME" >> $GITHUB_ENV - - - name: Commit and push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} - git add . - git commit -m "Update package.json version" - git push origin HEAD:"$BRANCH" - - name: Build run: pnpm run build