···2525 DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_MERGEBOT }}
2626```
27272828+## tsdown
2929+3030+This workflow provides a standardized build process for TypeScript libraries using tsdown. It includes:
3131+3232+- Automatic building on push and pull requests
3333+- Node.js setup with caching
3434+- Automatic tsdown configuration generation
3535+- Build artifact uploads
3636+3737+### Usage
3838+3939+Add the following to your repository's workflow:
4040+4141+```yml
4242+name: Build
4343+4444+on:
4545+ push:
4646+ branches: [main]
4747+ pull_request:
4848+ branches: [main]
4949+5050+jobs:
5151+ build:
5252+ uses: bombshell-dev/automation/.github/workflows/tsdown.yml@main
5353+```
5454+5555+The workflow will automatically:
5656+1. Generate a standard tsdown configuration
5757+2. Install necessary dependencies (tsdown and @types/node)
5858+3. Build your TypeScript project
5959+4. Upload the build artifacts
6060+6161+The generated configuration includes:
6262+- ESM output format
6363+- TypeScript declaration file generation
6464+- Source maps
6565+- Minification
6666+- Node.js platform targeting
6767+- Tree shaking optimization
6868+6969+If you need to customize the configuration, you can create your own `tsdown.config.ts` file in your project root, and the workflow will use that instead of generating one.
7070+2871## Acknowledgements
29723073This repository borrows heavily from [`withastro/automation`](https://github.com/withastro/automation), published under the MIT License—Copyright (c) 2023 Astro.