Skip to content

Commit

Permalink
fix build add ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Nov 18, 2023
1 parent e9a88da commit 617fbb1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 617fbb1

Please sign in to comment.