From 6605129155c753fdcd290a8aab2aede5125fc54e Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 1 Mar 2022 18:10:50 +0530 Subject: [PATCH] ci: add a job to check `types` (#917) --- .github/workflows/nodejs.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 7b5d8c64..d4bde3b9 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -41,6 +41,12 @@ jobs: - name: Lint run: npm run lint + - name: Build types + run: npm run build:types + + - name: Check types + run: if [ -n "$(git status types --porcelain)" ]; then echo "Missing types. Update types by running 'npm run build:types'"; exit 1; else echo "All types are valid"; fi + - name: Security audit run: npm run security