1
0

add package path

This commit is contained in:
Marco Maatz 2024-10-23 09:48:52 +02:00
parent 7a4281f48a
commit 0d48f86180

View File

@ -8,6 +8,9 @@ on:
branch:
required: true
type: string
packagePath:
required: false
type: string
jobs:
SetVersion:
runs-on: ubuntu-latest
@ -19,7 +22,14 @@ jobs:
git pull origin HEAD:${{ inputs.branch }}
echo "Setting Version to ${{ inputs.version }}"
git_path=pwd
if [ "${{ inputs.packagePath }}" != "null" ]; then
cd ${{ inputs.packagePath }}
fi
npm version --no-git-tag-version ${{ inputs.version }}
cd $git_path
- name: Commit version change
run: |
if git diff --quiet && git diff --cached --quiet; then