I have already defina my .env file wiht the correct token but when i try to plubish my package in github this error ocurrs
An unhandled rejection has occurred inside Forge:
Error: Please set GITHUB_TOKEN in your environment to access these features
at new GitHub
That´s what i´m trying
my code below
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'xxxxxx',
name: 'xxxxxx'
},
prerelease: true,
draft: true,
authToken: process.env.GITHUB_TOKEN,
}
}
.env
GITHUB_TOKEN=xxxxxxxxxxx
New contributor
Mauricio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.