diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 08cff38..a91d995 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,15 +28,15 @@ jobs: - name: npm run build run: npm run build - - name: npm version ${{ github.event.inputs.version }} - run: npm version ${{ github.event.inputs.version }} - - - name: Set git variables + - name: Set git identity run: | $user = Invoke-RestMethod -Method Get -Uri https://api.github.com/users/${{ github.actor }} git config user.name $user.name git config user.email ($user.email ?? "${{ github.actor }}@noreply.users.github.com") + - name: npm version ${{ github.event.inputs.version }} + run: npm version ${{ github.event.inputs.version }} + - name: Push new version to GitHub run: | git add package.json package-lock.json