I've set up my .env file with the correct token, but I encountered an error when trying to publish my package on GitHub. An unhandled rejection has occurred inside Forge: Error: Please set GITHUB_TOKEN in your environment to access these features at new GitHub
This is what I'm attempting to do:
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'xxxxxx',
name: 'xxxxxx'
},
prerelease: true,
draft: true,
authToken: process.env.GITHUB_TOKEN,
}
}
Contents of .env file:
GITHUB_TOKEN=xxxxxxxxxxx