I am using Windows 10. In CMD, I tried to execute the following command in my electron project:
setx GH_TOKEN "ghp_B3kYZy7OibM1Rka4Y3jLSiBUlvtSS717FhvE" npm run publish
And I got this error:
ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Type "SETX /?" for usage.
The following code is the part of content of the Package.json file:
"scripts": {
"publish": "electron-builder build -w -p onTagOrDraft"
}
In the tutorial I am watching, this command is entered in the Mac operating system as follows, where it works properly:
