Skip to content

Commit 9b6b338

Browse files
sandinakclaude
andcommitted
ci: disable electron-builder auto-publish (-p never)
When a v* tag is checked out, electron-builder enters publish mode and demands GH_TOKEN, failing both Mac and Win jobs even though softprops/action-gh-release already handles uploads. -p never disables it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 52889e0 commit 9b6b338

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@ jobs:
5252
CSC_LINK: ${{ secrets.CSC_LINK }}
5353
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
5454
run: |
55+
# -p never disables electron-builder auto-publish (uploads are
56+
# handled by softprops/action-gh-release below); without this it
57+
# demands GH_TOKEN whenever a tag is present.
5558
if [ -n "$CSC_LINK" ]; then
56-
NODE_OPTIONS=--max-old-space-size=8192 npx electron-builder --mac
59+
NODE_OPTIONS=--max-old-space-size=8192 npx electron-builder --mac -p never
5760
else
5861
echo "No signing credentials — building unsigned"
59-
CSC_IDENTITY_AUTO_DISCOVERY=false NODE_OPTIONS=--max-old-space-size=8192 npx electron-builder --mac
62+
CSC_IDENTITY_AUTO_DISCOVERY=false NODE_OPTIONS=--max-old-space-size=8192 npx electron-builder --mac -p never
6063
fi
6164
6265
- name: Upload macOS release assets
@@ -119,7 +122,7 @@ jobs:
119122
[ -d "$DEPS_DIR/node_modules" ] && cp -r "$DEPS_DIR/node_modules" node_modules/presonus-studiolive-api/ || true
120123
121124
- name: Build Windows packages
122-
run: npx electron-builder --win
125+
run: npx electron-builder --win -p never
123126
env:
124127
NODE_OPTIONS: --max-old-space-size=8192
125128

0 commit comments

Comments
 (0)