diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 086a462..83c0d03 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -17,4 +17,5 @@ jobs: node-version: 18.12.0 # from .nvmrc file - run: npm i - run: npm run parse + - run: npm run build - run: npx semantic-release diff --git a/src/webpack-mjml-store.js b/src/webpack-mjml-store.js index fb6da28..279f194 100644 --- a/src/webpack-mjml-store.js +++ b/src/webpack-mjml-store.js @@ -174,7 +174,7 @@ WebpackMjmlStore.prototype.readFile = function (file) { try { fs.readFile(file, 'utf8', function (err, data) { if (err) { - throw err; + resolve(true); } resolve(data); });