TypeScript Example
Repository: janitor-sh/typescript-example
Run locally
Section titled “Run locally”npm installnpm run devBuild locally
Section titled “Build locally”npm run buildValidate janitor locally
Section titled “Validate janitor locally”janitor --no-commitCI behavior
Section titled “CI behavior”The example workflow runs on pushes and pull requests to main and executes janitor using Biome:
- name: Install biome run: npm install -g @biomejs/biome
- uses: janitor-sh/action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} tool: "biome"
- name: Push Janitor commit run: git push