Skip to content

Commit 00ddb78

Browse files
authored
feat: fix Cli CI packaging pipeline (#1926)
1 parent b4c85a1 commit 00ddb78

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/upload-release-assets.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
- name: Build project
6666
run: npm run prepublishOnly
6767
- name: Assets generation
68+
shell: bash
6869
run: cd modelina-cli && npm run ${{ matrix.npm_script }}
6970
- name: Update release
7071
uses: softprops/action-gh-release@v1

modelina-cli/scripts/releasePackagesRename.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ async function checkAndRenameFile(generatedPath, newPath) {
2222
}
2323

2424
async function createDirectory(directoryPath) {
25-
if (await fileExists(directoryPath)) {
25+
const exists = await fileExists(directoryPath);
26+
if (!exists) {
2627
await mkdir(directoryPath);
2728
}
2829
}

0 commit comments

Comments
 (0)