From 03d4f15c1d61e00673b450c4517e58dbed2299f2 Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 28 Aug 2025 12:30:05 +0200 Subject: [PATCH] :green_heart: Update publish command in publish.yaml to disable git checks --- .github/workflows/publish.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3ca50a3..cbdb6b8 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -29,21 +29,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Extract version from tag - id: version - run: | - VERSION=${GITHUB_REF#refs/tags/v} - echo "version=$VERSION" >> $GITHUB_OUTPUT - echo "Publishing version: $VERSION" - - - name: Update package.json version - run: | - pnpm version ${{ steps.version.outputs.version }} --no-git-tag-version - - name: Build package run: pnpm build - - name: Publish to NPM - run: pnpm publish --access public --provenance --no-git-checks - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: simenandre/publish-with-pnpm@v2 + with: + npm-auth-token: ${{ secrets.NPM_TOKEN }} \ No newline at end of file