Skip to content

Commit

Permalink
feat(ci): main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JaleelB committed Apr 27, 2024
1 parent dde56f8 commit b7fc3e5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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/*"
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish
on:
workflow_run:
workflows: [CC]
workflows: [CI]
branches: [main]
types: [completed]

Expand All @@ -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
Expand Down

0 comments on commit b7fc3e5

Please sign in to comment.