Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/tsdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: tsdown

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
Comment on lines +4 to +7

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to your docs this should be able to be called externally, you should switch this to use the workflow_call instead like the other functions.


jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Verify build
run: pnpm run build
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,35 @@ jobs:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_MERGEBOT }}
```

## ts down

This workflow verifies that your TypeScript project builds successfully. It runs on push and pull requests to ensure your project's build process is working correctly.

### Usage

Add the following to your repository's workflow:

```yml
name: Verify Build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
verify:
uses: bombshell-dev/automation/.github/workflows/tsdown.yml@main
```

The workflow will:
1. Set up Node.js and pnpm
2. Install project dependencies
3. Run the project's build script to verify it builds successfully

This ensures your project's build process is working correctly before merging changes.

## Acknowledgements

This repository borrows heavily from [`withastro/automation`](https://github.com/withastro/automation), published under the MIT License—Copyright (c) 2023 Astro.
Loading