From 11260e43950b6bf78d68c759dc3ac278bc13f8a8 Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Sat, 14 Jun 2025 20:12:29 -0500 Subject: [PATCH] fix: auto semantic versioning fix again --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bca94058..4a5119b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,11 @@ name: Release - patch - minor - major +permissions: + contents: write + issues: write + pull-requests: write + packages: write jobs: release: runs-on: ubuntu-latest @@ -29,12 +34,19 @@ jobs: with: node-version: '18' cache: npm + registry-url: https://registry.npmjs.org - name: Install dependencies run: npm ci - name: Run tests and validation run: | npm run validate npm run format + - name: Debug permissions + run: | + echo "Testing git permissions..." + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + echo "Git config set successfully" - name: Manual version bump if: github.event_name == 'workflow_dispatch' run: npm run version:${{ github.event.inputs.version_type }} @@ -43,4 +55,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: npm run release