From 3f0e30494e7bd5dbef4754dbffaac407d3c550a9 Mon Sep 17 00:00:00 2001 From: Giampaolo Bellavite Date: Tue, 15 Oct 2024 06:03:31 -0500 Subject: [PATCH] fix(ci): bump version --- .github/workflows/package.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 8c46ac1fd..66d6724c6 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -76,6 +76,7 @@ jobs: needs: [build, test] if: ${{ github.event_name == 'release' || github.event.inputs.publish }} permissions: + contents: write id-token: write steps: - uses: actions/checkout@v4 @@ -94,6 +95,15 @@ jobs: run: | TAG=$(git describe --tags) npm version $TAG --no-git-tag-version + - name: Commit and push version bump + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add package.json + git commit -m "build: bump version to $TAG" + git push origin HEAD:${{ github.ref }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm publish --provenance --tag latest env: NODE_AUTH_TOKEN: ${{ secrets.npm_token }}