Skip to content

Commit

Permalink
ci: add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
hf committed May 12, 2024
1 parent 4ecfdda commit 161478a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Run tests
- name: Build
run: |
npm ci
npm run build
- name: Run tests
run: |
npm t
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"clean": "rimraf dist docs",
"coverage": "echo \"run npm test\"",
"format": "prettier --write \"{src,test}/**/*.ts\"",
"build": "genversion src/lib/version.ts --es6 && run-s clean format build:* && run-s lint",
"build": "run-s clean format build:* && run-s lint",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"lint": "eslint ./src/**/* test/**/*.test.ts",
Expand Down

0 comments on commit 161478a

Please sign in to comment.