Skip to content

Commit

Permalink
removed auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaDemchenko committed Mar 18, 2024
1 parent e2c6266 commit 94ebe9b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 94ebe9b

Please sign in to comment.