Skip to content

Commit 71c1dbd

Browse files
committed
split step
1 parent 74c7802 commit 71c1dbd

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ jobs:
4040
npm install --force --save-dev \
4141
react@${{matrix.react-version}} \
4242
react-dom@${{matrix.react-version}}
43+
- name: Build module
44+
run: npm run build
4345
- name: Run tests
4446
run: npm run tests-only

.github/workflows/deploy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
run: npm install
1818
- name: Run tests
1919
run: npm test
20+
- name: Build module
21+
run: npm run build
2022
- name: Build example
2123
run: npm run --prefix example build
2224
- name: Publish site

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"build": "tsup src/index.tsx --format esm,cjs --experimental-dts",
6666
"docs": "prop-types-table src/index.js | md-insert README.md --header Props -i",
6767
"example": "npm run --prefix example start",
68-
"prepare": "npm run build",
6968
"browserslist": "npx browserslist --mobile-to-desktop '> 0.5%, last 2 versions, Firefox ESR, not dead, not IE 11' > .browserslistrc",
7069
"test": "npm run tests-only && npm run lint",
7170
"lint": "eslint --fix --ext .js,.jsx,.ts,.tsx .",

0 commit comments

Comments
 (0)