diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index edad9b90..8dad319a 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -31,9 +31,7 @@ jobs: run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} - name: set version run: | - TEMP_FILE=$(mktemp) - jq ".version |= \"${{ steps.version.outputs.tag }}\"" package.json > "$TEMP_FILE" || exit 1 - mv "$TEMP_FILE" package.json + ./updateVersion.sh ${{ steps.version.outputs.tag }} - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: ${{ steps.version.outputs.tag }}