diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fe6e281e..cc4d8b6a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,6 +32,9 @@ jobs: - name: Lint run: npm run lint + + - name: Build + run: npm run build - name: Run jest tests run: npm run jest -- --runInBand diff --git a/package.json b/package.json index d6fffcff..0cc50b35 100644 --- a/package.json +++ b/package.json @@ -163,14 +163,14 @@ "build": "babel src --out-dir dist", "lint": "eslint . --ignore-path .gitignore", "prettify": "prettier --write \"src/**/*.js\"", - "prepublish": "npm run build", + "prepublishOnly": "npm run build", "pretest": "npm run lint", "release": "npmpub", "jest": "jest", - "test": "jest --coverage", - "watch": "jest --watch", - "test-rule": "jest", - "test-util": "jest" + "test": "npm run jest -- --coverage", + "watch": "npm run jest -- --watch", + "test-rule": "npm run jest", + "test-util": "npm run jest" }, "lint-staged": { "**/*.{js,json}": [