From 65a09c7458cdf33c399e4c0f0628e015495ce39e Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Fri, 2 Feb 2024 17:26:01 +0100 Subject: [PATCH] fix: windows build (#22) --- .github/workflows/build-windows.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index a29ca914..7cad3a89 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -17,10 +17,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Use Node.js 14 + - name: Use Node.js 16 uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 16 - run: yarn install --ignore-engines @@ -31,7 +31,12 @@ jobs: - name: Check if binary is compiled, skip if download only id: check_file run: | - if (Test-Path -Path dist\\*.sha256sum -PathType Leaf) { echo ""EXISTS=true" >> $GITHUB_OUTPUT" } else { echo ""EXISTS=false" >> $GITHUB_OUTPUT" } + ls dist + if (Test-Path -Path dist\\*.sha256sum -PathType Leaf) { + "EXISTS=true" | Out-File -FilePath $env:GITHUB_OUTPUT -Append + } else { + "EXISTS=false" | Out-File -FilePath $env:GITHUB_OUTPUT -Append + } - uses: actions/upload-artifact@v4 if: steps.check_file.outputs.EXISTS == 'true'