From c1aef998174886fa22bb9e3476cc75ebb4180e89 Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Mon, 2 Jun 2025 19:07:55 +1000 Subject: [PATCH] Setting up checks --- .github/workflows/check.yml | 25 +++++++++++++++++++++++++ .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ .prettierignore | 3 ++- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..9f90469 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,25 @@ +name: Check + +on: + pull_request: + branches: + - main + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup pnpm & install + uses: wyvox/action-setup-pnpm@v3 + with: + node-version: 22 + + - name: Build + run: pnpm build + + - name: Run checks + run: pnpm run check diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..66a9641 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish Any Commit +on: + pull_request: + push: + branches: + - '**' + tags: + - '!**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup pnpm & install + uses: wyvox/action-setup-pnpm@v3 + with: + node-version: 22 + + - name: Build + run: pnpm build + + - run: pnpm dlx pkg-pr-new publish --compact --bin diff --git a/.prettierignore b/.prettierignore index eeeb7be..a6941ec 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ -pnpm-lock.yaml \ No newline at end of file +pnpm-lock.yaml +*.md