1️⃣ Go to https://www.npmjs.com/settings/npm_account/tokens/new
2️⃣ Follow the instructions (select type "Automation"), and copy the generated token
3️⃣ Go to https://github.com/github_account/github_repo/settings
4️⃣ Under "Code and automation" > "Actions" > "General" > "Workflow permissions"
→ check "Read and write permissions"
5️⃣ Under "Security" > "Secrets and variables" > "Actions"
→ click the button "New repository secret"
→ add a secret named "NPM_TOKEN" with for value your npm token
6️⃣ Add the two following files to the repo:
(ci.yml in .github/workflows/ci.yml, .releaserc in the root folder)
7️⃣ Check that your package.json includes repository field