Skip to content

Commit

Permalink
fix: use prepack script for build
Browse files Browse the repository at this point in the history
  • Loading branch information
star0202 committed Apr 6, 2023
1 parent 04c4bb2 commit f1fad47
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ jobs:
- name: Install Dependencies
run: pnpm i --frozen-lockfile

- name: Build
run: pnpm run build

- name: Semantic release
run: pnpm run release
env:
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.7",
"rimraf": "^4.4.1",
"semantic-release": "^21.0.1",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
Expand All @@ -43,7 +44,8 @@
"lint": "eslint src --ignore-path .gitignore",
"test": "jest",
"build": "tsc",
"release": "semantic-release"
"release": "semantic-release",
"prepack": "rimraf dist && tsc"
},
"packageManager": "[email protected]",
"release": {
Expand Down
47 changes: 47 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1fad47

Please sign in to comment.