Template Repository for TypeScript
- Copy
.env.example
to.env
and set Personal Access Token withrepo
access. - Run
npm run gh:apply-all
to update GitHub Repository Settings. - Set Actions secrets on the GUI settings page (https://github.com/{owner}/{repo}/settings/secrets/actions).
NPM_TOKEN
- Open https://www.npmjs.com/settings/{your-user-id}/tokens -> Generate New Token -> Classic Token -> Select
Automation
and generate. - Required for semantic-release to run npm publish
- Open https://www.npmjs.com/settings/{your-user-id}/tokens -> Generate New Token -> Classic Token -> Select
SEMANTIC_RELEASE_GIT_PERMISSION_BOT_PRIVATE_KEY
- https://github.com/apps/semantic-release-git-permission -> App settings -> Generate a private key
- Required for
@semantic-release/git
to perform a git commit to the main branch
PERSONAL_ACCESS_TOKEN
- The same value as
1.
- Required for
.github/workflows/backup-repository-settings.yml
to run
- The same value as
- Set Dependabot secrets on the GUI settings page (https://github.com/{owner}/{repo}/settings/secrets/dependabot).
DEPENDABOT_AUTO_MERGE_BOT_PRIVATE_KEY
- https://github.com/apps/dependabot-auto-merge-permissions -> App settings -> Generate a private key