Skip to content

Commit 13aa620

Browse files
committed
chore: change prepublishOnly by postprepare script
1 parent 912854e commit 13aa620

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/npm-pr.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ jobs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 16
17-
- run: npm ci
18-
- run: npm run build
17+
- run: npm clean-install
1918
- run: npm run lint
2019
- run: npm test
2120

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"coverage": "jest --coverage",
2727
"clean": "rm -rf output",
2828
"build": "tsc",
29-
"prepublishOnly": "npm run build",
29+
"postprepare": "npm run build",
3030
"start": "node ./index.js",
3131
"lint": "npm run lint:prettier && npm run lint:eslint",
3232
"lint:eslint": "eslint --ext .ts .",

0 commit comments

Comments
 (0)