diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9d0d7428..aa6320e3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,11 +16,15 @@ jobs: with: node-version: '18.x' registry-url: 'https://registry.npmjs.org' + - name: Install dependencies run: | npm ci npm run build + + - name: Tests + run: | npm run lint npm run test npm run check-types diff --git a/package.json b/package.json index 90e678a2..3227c523 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build:framework": "npm run optimise:svg && npm run build:hash && npm run build:css", "build:hash": "node scripts/hash.cjs", "create:autolayout": "npm --workspace=@trilogy-ds/styles run build:autolayout && npm run create:autolayout", - "lint": "eslint packages/react --ext .ts,.tsx --fix && tsc --noemit", + "lint": "eslint packages/react --ext .ts,.tsx --fix && npm run check-types", "optimise:svg": "npm --workspace=@trilogy-ds/styles run optimise:svg", "start": "npm --workspace=@trilogy-ds/react-template run start", "setup:native": "cd examples/mobile && npm i && npm run setup:native", diff --git a/packages/react/package.json b/packages/react/package.json index 928d7fea..a68de5b8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -15,7 +15,6 @@ "scripts": { "test": "jest --config jest.config.web.ts --updateSnapshot --coverage", "check-types": "tsc --noemit", - "lint": "eslint src --ext .ts,.tsx --fix && npm run check-types", "test:native": "jest --config jest.config.native.ts --updateSnapshot --coverage --silent", "prebuild": "node -p \"'export const version = ' + JSON.stringify(require('./package.json').version)\" > version.ts", "build": "rimraf lib && npm run prebuild && tsc -p . && tsc-alias && cp -R ../../config/native/react-native.config.js ./lib/"