Skip to content

Commit b8f4c47

Browse files
build: strip pacakge.json before publishing package
1 parent f6413c9 commit b8f4c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/continuous-deployment-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: npm run build
1919
- run: cp LICENSE build/LICENSE
2020
- run: cp README.md build/README.md
21-
- run: cp package.json build/package.json
21+
- run: jq 'del(.devDependencies) | del(.scripts)' package.json > build/package.json
2222
- run: npm publish ./build
2323
env:
2424
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)