💚 Update publish command in publish.yaml to disable git checks

This commit is contained in:
Paillat
2025-08-28 12:30:05 +02:00
parent 5dc2582ef7
commit 03d4f15c1d

View File

@@ -29,21 +29,9 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile 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 - name: Build package
run: pnpm build run: pnpm build
- name: Publish to NPM - uses: simenandre/publish-with-pnpm@v2
run: pnpm publish --access public --provenance --no-git-checks with:
env: npm-auth-token: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}