diff --git a/.github/workflows/upload-release-assets.yml b/.github/workflows/upload-release-assets.yml index 33d5ea2114..16d3cf1b73 100644 --- a/.github/workflows/upload-release-assets.yml +++ b/.github/workflows/upload-release-assets.yml @@ -65,6 +65,7 @@ jobs: - name: Build project run: npm run prepublishOnly - name: Assets generation + shell: bash run: cd modelina-cli && npm run ${{ matrix.npm_script }} - name: Update release uses: softprops/action-gh-release@v1 diff --git a/modelina-cli/scripts/releasePackagesRename.js b/modelina-cli/scripts/releasePackagesRename.js index a975b7b8f3..3a4ce0fc3a 100644 --- a/modelina-cli/scripts/releasePackagesRename.js +++ b/modelina-cli/scripts/releasePackagesRename.js @@ -22,7 +22,8 @@ async function checkAndRenameFile(generatedPath, newPath) { } async function createDirectory(directoryPath) { - if (await fileExists(directoryPath)) { + const exists = await fileExists(directoryPath); + if (!exists) { await mkdir(directoryPath); } }