diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..db9c556 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI +on: + push: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Check prettier format + run: pnpm run prettier-check + + - name: Build packages + run: pnpm run build --filter "./packages/*" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fba18f2..12577dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,7 @@ name: Publish on: workflow_run: - workflows: [CC] + workflows: [CI] branches: [main] types: [completed] @@ -23,7 +23,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18.x - cache: "pnpm" + cache: 'pnpm' - name: Install Dependencies run: pnpm install --frozen-lockfile