set version error fix
This commit is contained in:
parent
d657989e79
commit
7d6ee1bf2e
@ -16,10 +16,17 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- name: Set
|
||||
run: |
|
||||
git pull origin HEAD:${{ inputs.branch }}
|
||||
|
||||
echo "Setting Version to ${{ inputs.version }}"
|
||||
npm version --no-git-tag-version ${{ inputs.version }}
|
||||
- name: Commit version change
|
||||
run: |
|
||||
if git diff --quiet && git diff --cached --quiet; then
|
||||
echo "No changes in the repository."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git config user.name "${{ vars.GIT_DEPLOY_NAME }}"
|
||||
git config user.email "${{ vars.GIT_DEPLOY_MAIL }}"
|
||||
git add package.json
|
||||
|
Loading…
Reference in New Issue
Block a user