From 058fd13bdc7750005c55440f4b60ee5535d463c2 Mon Sep 17 00:00:00 2001 From: derberg Date: Tue, 9 Apr 2024 14:05:54 +0200 Subject: [PATCH] fix: trigger another release to get assets published with fix --- .github/workflows/upload-release-assets.yml | 6 ++++-- scripts/releasePackagesRename.js | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upload-release-assets.yml b/.github/workflows/upload-release-assets.yml index 509bd631aee..3fa00daf6f8 100644 --- a/.github/workflows/upload-release-assets.yml +++ b/.github/workflows/upload-release-assets.yml @@ -41,12 +41,12 @@ jobs: extension: x64.pkg steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check package-lock version uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master id: lockversion - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "${{ steps.lockversion.outputs.version }}" - name: Get version from package.json @@ -65,8 +65,10 @@ jobs: - name: Install dependencies run: npm ci - name: Build project + shell: bash run: npm run prepublishOnly - name: Assets generation + shell: bash run: npm run ${{ matrix.npm_script }} - name: Update release uses: softprops/action-gh-release@v1 diff --git a/scripts/releasePackagesRename.js b/scripts/releasePackagesRename.js index e014132a094..01d1b3f8b91 100644 --- a/scripts/releasePackagesRename.js +++ b/scripts/releasePackagesRename.js @@ -22,7 +22,10 @@ async function checkAndRenameFile(generatedPath, newPath) { } async function createDirectory(directoryPath) { - await mkdir(directoryPath); + const exists = await fileExists(directoryPath); + if (!exists) { + await mkdir(directoryPath); + } } async function renameDeb({version, name, sha}) {