Skip to content

Commit

Permalink
Update artifacts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvanrijn authored Nov 4, 2024
1 parent bff4855 commit d1af741
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d1af741

Please sign in to comment.