Guidance for coding agents working in this repository.
- Name: Crosspost Markdown
- Type: GitHub Action written in TypeScript
- Entry point:
src/main.ts - Published artifact:
dist/index.js(bundled with@vercel/ncc)
- Install dependencies:
npm install
- Run checks:
npm run buildnpm run lintnpm test
npm run build— compile TypeScriptnpm run lint— run ESLint onsrc/**/*.tsnpm run test— run Jest test suitenpm run package— bundle action intodist/index.jsnpm run all— run build, format, lint, package, and tests
src/— action implementationpublish/— publisher integrations (dev.to, medium)
__tests__/— shared/fixture-driven testsaction.yml— action metadata and inputsdist/— generated bundle committed for GitHub Actions runtime
- Use npm for dependency management.
- Update direct dependencies in
package.json, then regenerate lockfile withnpm install. - After dependency changes, run
npm run build && npm run lint && npm test. - If runtime code changes are introduced, regenerate
dist/withnpm run package.
- Do not commit secrets or API tokens.
- Treat
dist/as generated output; keep it in sync with runtime changes.