Publishing a GitHub release
Electorn-Forge
- electron forge๋ publisher ํ๋ฌ๊ทธ์ธ
Github access token ์์ฑํ๊ธฐ
- electorn forge๋ github permission ์์ด ์ด๋ค repository์๋ publish ํ ์ ์์
- Forge์ github releases ํ๊ฐ๋ฅผ ์ํด authenticated token์ด ํ์ํจ
- ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ public_repo์ ํจ๊ป PAT๋ฅผ ์์ฑํด public repo์ ์ ๊ทผํด ์ธ ์ ์๊ฒ ํจ
- ๋ฐ๊ธ ๋ฐ์ ๋น๋ฐ๋ก ์ ์ง๋์ด์ผ๋ง ํจ!
forge์์ github publisher ์ธํ
ํ๊ธฐ
npm install --save-dev @electron-forge/publisher-github
- forge.config.js ์ค์ ํ๊ธฐ
module.exports = {
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'github-user-name',
name: 'github-repo-name',
},
#GITHUB_ACCESS_TOKEN
authToken: process.env.GITHUB_TOKEN,
prerelease: false,
draft: true,
},
},
],
}
- authentication token ์ค์ ํ๊ธฐ
- authentication token์ Publisher๊ฐ ์ธ์งํ ์ ์๊ฒ ํ๋ ๊ฒ ํ์
- ๊ธฐ๋ณธ์ ์ผ๋ก GITHUB_TOKEN environment variable ์ค์ ํด์ผ ํจ.
- publish
npm run publish
๋๊ธ