diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index b8b3ff4f70..9107d66862 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -266,7 +266,14 @@ jobs: sed -i '/only = prod/d' -- '.npmrc' sed -i '/optional = false/d' -- '.npmrc' sed -i '/production = true/d' -- '.npmrc' - bin/linux/x64/node/node-v$node_version-linux-x64/bin/node node_modules/npm/bin/npm-cli.js ls || true + if [[ "$OSTYPE" == "msys" ]]; then + bin/windows/x64/node/node-v$node_version-win-x64/node.exe bin/windows/x64/node/node-v$node_version-win-x64/node_modules/npm/bin/npm-cli.js ls || true + else + cat bin/linux/x64/node/node-v$node_version-linux-x64/bin/node.* > bin/linux/x64/node/node-v$node_version-linux-x64/bin/node + chmod +x bin/linux/x64/node/node-v$node_version-linux-x64/bin/node + bin/linux/x64/node/node-v$node_version-linux-x64/bin/node bin/linux/x64/node/node-v$node_version-linux-x64/lib/node_modules/npm/bin/npm-cli.js ls || true + rm bin/linux/x64/node/node-v$node_version-linux-x64/bin/node + fi rm -rf .npm/ git checkout -- '.npmrc' # Ignore peerDependencies @@ -276,7 +283,14 @@ jobs: "private": "true" }' > package.json cp DownloadItYourself/.npmrc .npmrc - DownloadItYourself/bin/linux/x64/node/node-v$node_version-linux-x64/bin/node DownloadItYourself/bin/linux/x64/node/node-v$node_version-linux-x64/lib/node_modules/npm/bin/npm-cli.js install ./DownloadItYourself + if [[ "$OSTYPE" == "msys" ]]; then + DownloadItYourself/bin/windows/x64/node/node-v$node_version-win-x64/node.exe DownloadItYourself/bin/windows/x64/node/node-v$node_version-win-x64/node_modules/npm/bin/npm-cli.js install ./DownloadItYourself + else + cat DownloadItYourself/bin/linux/x64/node/node-v$node_version-linux-x64/bin/node.* > DownloadItYourself/bin/linux/x64/node/node-v$node_version-linux-x64/bin/node + chmod +x DownloadItYourself/bin/linux/x64/node/node-v$node_version-linux-x64/bin/node + DownloadItYourself/bin/linux/x64/node/node-v$node_version-linux-x64/bin/node DownloadItYourself/bin/linux/x64/node/node-v$node_version-linux-x64/lib/node_modules/npm/bin/npm-cli.js install ./DownloadItYourself + rm DownloadItYourself/bin/linux/x64/node/node-v$node_version-linux-x64/bin/node + fi rm -rf .npm/ artifacts_audit: runs-on: ubuntu-latest