- Create a GitHub App. Webhook is not needed. The following permissions are required:
- Metadata: Read only
- Actions: Read and Write
- Issues: Read and Write
- Pull requests: Read and Write
- Install that App to the organization/user. Give that App access to vitejs/vite and vitejs/vite-ecosystem-ci.
- Check the App ID. It's written on
https://github.com/settings/apps/<github-app-name-slug>
. This is used later. - Generate a private key. It can be generated on the same page with the App ID. The key will be downloaded when you generate it.
- vitejs/vite
ECOSYSTEM_CI_GITHUB_APP_ID
: ID of the created GitHub AppECOSYSTEM_CI_GITHUB_APP_PRIVATE_KEY
: the content of the private key of the created GitHub App
- vitejs/vite-ecosystem-ci
PR_GITHUB_APP_ID
: ID of the created GitHub AppPR_GITHUB_APP_PRIVATE_KEY
: the content of the private key of the created GitHub App
Add this workflow.