Skip to content

add: tsdown workflow #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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 ]

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