Skip to content

Commit

Permalink
Try and fix automated deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyjth committed Apr 1, 2024
1 parent 2593e38 commit 7e50486
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 327,592 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ jobs:
with:
registry-url: https://registry.npmjs.org/

- name: Yarn Install
run: yarn
working-directory: web-embeds

- name: Deploy to NPM
run: npm run bump
run: yarn bump
working-directory: web-embeds
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
9 changes: 9 additions & 0 deletions web-embeds/craco.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const webpack = require("webpack");

// craco.config.js
module.exports = {
webpack: {
Expand All @@ -6,6 +8,13 @@ module.exports = {
webpackConfig.output.filename = "static/js/index.js";
webpackConfig.output.chunkFilename = "static/js/[name].chunk.js";

webpackConfig.plugins = [
...webpackConfig.plugins,
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
];

// Override CSS file names in production
if (env === "production") {
webpackConfig.plugins.forEach((plugin) => {
Expand Down
Loading

0 comments on commit 7e50486

Please sign in to comment.