diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 36bc3d2..79f4a02 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -48,3 +48,11 @@ jobs: run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + + - name: Commit updated package.json + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add package.json + git commit -m "Update package.json version to ${{ env.VERSION }}" + git push origin HEAD:${{ github.ref }}