- Use toast.success/warning instead of toast({title:}) for better UX
- Change credentials copy format to labeled multi-line format
- Add ESLint global declarations for Node.js globals
Co-Authored-By: Claude <noreply@anthropic.com>
The workflow triggers on `v*` tags and build.yml extracts version from
any v-prefixed tag. Updated the regex from `^v\d+\.\d+\.\d+` to `^v\d`
to accept tags like v1, v1.2, v1.2.3, etc.
This ensures version parsing stays in sync with build.yml behavior.
Co-Authored-By: Claude <noreply@anthropic.com>
- Tag release: use version from tag (e.g., v1.2.3 -> 1.2.3)
- workflow_dispatch: use short commit ID (first 7 chars)
This ensures electron-builder artifacts match the release notes
download links in all scenarios.
Co-Authored-By: Claude <noreply@anthropic.com>
Version priority is now:
1. VERSION env variable
2. Valid version tag (v1.2.3 format)
3. Short commit ID (first 7 chars)
4. package.json version as final fallback
Co-Authored-By: Claude <noreply@anthropic.com>
When workflow is triggered via workflow_dispatch, GITHUB_REF_NAME is
the branch name (e.g., "main") instead of a version tag. This caused
the generated release notes to have incorrect download URLs.
Now the script:
1. Checks if GITHUB_REF_NAME is a valid version tag (v1.2.3 format)
2. Falls back to reading version from package.json if not
This ensures the release notes always match the actual artifact
filenames produced by electron-builder.
Co-Authored-By: Claude <noreply@anthropic.com>
Enables publishing a GitHub Release when the workflow is manually
triggered and the corresponding input is set, providing more
flexibility for release management beyond tag-based automation.
Switches from the default GitHub token to a specific release token
for artifact uploads, improving security and aligning with best
practices for token management.
Ensures the npm package version automatically matches the Git tag
during CI builds triggered by version tags, improving consistency
between releases and tags.
Limits uploaded and released artifacts to specific file types
to avoid unnecessary files, improving release clarity.
Adds artifact listing for easier debugging and ensures
release notes are auto-generated. Sets unmatched files
to not fail the release step for smoother automation.
Separates artifact release steps into a dedicated job triggered
only on tag refs, improving workflow clarity and ensuring that
release permissions are only granted when needed.
Sets the environment variable to disable publishing artifacts
when building for macOS and Windows. Ensures builds do not
accidentally trigger publish actions in CI environments.
Switches macOS package target from pkg to dmg and zip, disables hardened runtime, and sets code signing identity discovery off to resolve build issues. Removes an unused Windows-specific package to clean up dependencies.
Improves configuration security and flexibility by reading OAuth
client IDs and secrets from environment variables instead of
hardcoding them. Enables easier key management across environments
and adds support for Google client secret in token exchange flows.