GitHub Copilot Train-the-Trainer
Generate CI from the application
Read package.json, tests, and scripts/build.js. Create ci.yml for pull requests
and pushes to main. Use Node.js 20, npm ci, existing lint, test, and build scripts,
npm caching, contents: read, and a seven-day dist artifact.
Check the draft with actionlint and the application's own commands:
actionlint ci.yml
npm test && npm run lint && npm run build