diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cecd2d5..5106a8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,5 +40,7 @@ jobs: npm install --force --save-dev \ react@${{matrix.react-version}} \ react-dom@${{matrix.react-version}} + - name: Build module + run: npm run build - name: Run tests run: npm run tests-only diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 574c7a0..bd752c0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,6 +17,8 @@ jobs: run: npm install - name: Run tests run: npm test + - name: Build module + run: npm run build - name: Build example run: npm run --prefix example build - name: Publish site diff --git a/package.json b/package.json index 7fb34b6..3bd5c4a 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,6 @@ "build": "tsup src/index.tsx --format esm,cjs --experimental-dts", "docs": "prop-types-table src/index.js | md-insert README.md --header Props -i", "example": "npm run --prefix example start", - "prepare": "npm run build", "browserslist": "npx browserslist --mobile-to-desktop '> 0.5%, last 2 versions, Firefox ESR, not dead, not IE 11' > .browserslistrc", "test": "npm run tests-only && npm run lint", "lint": "eslint --fix --ext .js,.jsx,.ts,.tsx .",