Skip to content

Commit

Permalink
ci: added github action for checking build (#35)
Browse files Browse the repository at this point in the history
* ci: added github action for checking build

* fix wrong folder name
  • Loading branch information
giangndm authored Oct 28, 2024
1 parent 33d71a7 commit 4223a55
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check-build-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check and Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
# Remove npm cache configuration

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Build sdk-core
run: pnpm run build
working-directory: ./packages/sdk-core

- name: Build sdk-react-hooks
run: pnpm run build
working-directory: ./packages/sdk-react-hooks

- name: Build sdk-react-ui
run: pnpm run build
working-directory: ./packages/sdk-react-ui

0 comments on commit 4223a55

Please sign in to comment.