From 617fbb1ffebb481f425b70031ec59777256f9b5f Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Sat, 18 Nov 2023 21:41:03 +0000 Subject: [PATCH] fix build add ci job --- .github/workflows/ci.yml | 14 ++++++++++++++ package.json | 2 +- packages/vanilla/package.json | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f4edcbf..7d03fdf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,20 @@ jobs: env: SKIP: no-commit-to-branch + packages-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - run: npm install + - run: npm run build + - run: tree packages-dist + check: # This job does nothing and is only used for the branch protection if: always() needs: [lint] diff --git a/package.json b/package.json index f6746a21..a2bc966d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ ], "scripts": { "dev": "npm run --workspace=vanilla dev", - "build": "npm run --workspaces build", + "build": "rm -rf packages-dist && npm run --workspaces build", "typecheck": "npm run --workspaces typecheck", "lint": "eslint packages --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0", "lint-fix": "npm run lint -- --fix", diff --git a/packages/vanilla/package.json b/packages/vanilla/package.json index 95b67e54..ac479602 100644 --- a/packages/vanilla/package.json +++ b/packages/vanilla/package.json @@ -2,7 +2,7 @@ "private": true, "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "tsc --noEmit && vite build", "typecheck": "tsc --noEmit", "typewatch": "tsc --noEmit --watch" },