From 161478abed8c92ee4e76ef8640f96463b1b75103 Mon Sep 17 00:00:00 2001 From: Stojan Dimitrovski Date: Sun, 12 May 2024 18:47:26 +0200 Subject: [PATCH] ci: add build step --- .github/workflows/ci.yml | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c828c8c1..4047ca52b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index 2358de276..9923962d1 100644 --- a/package.json +++ b/package.json @@ -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",