diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..201ed2f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build Check + +on: + pull_request: + branches: + - main + +permissions: + pull-requests: read + +jobs: + ########### BUILD PACKAGE ############ + build-package: + name: Build Package + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: PNPM Install + uses: pnpm/action-setup@v4 + with: + version: 9.1.3 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20.10.0 + cache: 'pnpm' + registry-url: https://registry.npmjs.org/ + + - run: corepack enable + + - name: Install NPM Dependencies + run: pnpm install --frozen-lockfile + + - name: Build Library Check + if: ${{ always() }} + run: pnpm build