Skip to content

Commit 3b27be5

Browse files
committed
fix: build before npm publish
1 parent 3cff397 commit 3b27be5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ jobs:
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
NODE_OPTIONS: --openssl-legacy-provider
2930
run: npx semantic-release

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"dist"
3131
],
3232
"scripts": {
33-
"build": "rm -rf dist && tsc && npm run build-storybook && rm -rf storybook-static",
33+
"build": "rm -rf dist && tsc",
3434
"build-storybook": "build-storybook",
3535
"deploy-storybook": "storybook-to-ghpages",
3636
"docs": "rm -rf docs && typedoc ./src --out",
@@ -39,7 +39,8 @@
3939
"release": "standard-version",
4040
"start": "npm run storybook",
4141
"storybook": "start-storybook -p 6006",
42-
"test": "npm run build && jest && tsc"
42+
"test": "npm run build && jest && tsc",
43+
"version": "npm run build"
4344
},
4445
"commitlint": {
4546
"extends": [

0 commit comments

Comments
 (0)