mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
* Revert storybook updates - pin versions - add production build CI * test.yml wasnt added to the commit Co-authored-by: Sabe Jones <sabrecat@gmail.com>
14 lines
263 B
JavaScript
14 lines
263 B
JavaScript
/* eslint-disable import/no-commonjs */
|
|
|
|
const { execSync } = require('child_process');
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
execSync('npm run build', {
|
|
stdio: 'inherit',
|
|
});
|
|
|
|
execSync('npm run storybook:build', {
|
|
stdio: 'inherit',
|
|
});
|
|
}
|