Skip to content

Commit 05e9bdd

Browse files
committed
Set NODE_ENV=production when building for npm package
This fixes an issue where Babel's JSX transform was run in development mode when building the npm package, bloating each JSX component with debug info.
1 parent fc0df39 commit 05e9bdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
run: yarn install --immutable
1919
- name: Build lib files
2020
run: yarn build
21+
env:
22+
NODE_ENV: production
2123
- name: Publish package
2224
run: npm publish --access public
2325
env:

0 commit comments

Comments
 (0)