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