From 354d6c00a1c41922fae3c81cc3339d8678836e8f Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 18 Oct 2024 10:21:04 -0400 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e1d8352..84db9cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,6 +58,24 @@ jobs: - name: Install dependencies run: npm install + - name: Replace symlinks with actual files (Unix) + if: runner.os != 'Windows' + run: | + find node_modules/.bin -type l -print0 | while IFS= read -r -d '' link; do + target=$(readlink "$link") + rm "$link" + cp "$target" "$link" + done + + - name: Replace symlinks with actual files (Windows) + if: runner.os == 'Windows' + run: | + Get-ChildItem -Path node_modules\.bin -Link | ForEach-Object { + $Target = (Get-Item $_.FullName).Target + Remove-Item $_.FullName + Copy-Item $Target $_.FullName + } + - name: Zip files (Windows) if: runner.os == 'Windows' run: powershell.exe -Command "Compress-Archive -Path . -DestinationPath evidence-${{ matrix.os }}-${{ matrix.arch }}-node${{ matrix.node }}.zip -Force"