Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Guard 'publish' build task with option #33

@kenny-evitt

Description

@kenny-evitt

I was able to build the project (I think) after installing Yarn and then running the build.sh script. But the script failed at the final 'publish' Yarn task:

kevitt@LT-NYC123 MINGW64 /c/@code/gitlab-time-tracker-taskbar (master)
$ ./build.sh
yarn install v1.10.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
...
√ Packaging Application
Making for the following targets:
√ Making for target: squirrel - On platform: win32 - For arch: x64
√ Resolving publish target: github

Electron forge was terminated:
Please set GITHUB_TOKEN in your environment to access these features
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I adapted some code from another Bash script that adds a --publish to build.sh. I'll submit a PR for this shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions