CI: Export homebrew bin dirs to PATH for rename script

Without this, the rename_binary_script step has no `node` on the PATH,
and errors out (thus erroring out the entire run
before uploading any binaries)!

Whoops.
This commit is contained in:
DeeDeeG 2023-08-16 00:01:49 -04:00
parent cfb9436484
commit 7014976f02

View File

@ -139,6 +139,7 @@ silicon_mac_task:
- export PATH="/opt/homebrew/bin:/opt/homebrew/opt/node@16/bin:$PATH"
- yarn dist || yarn dist
rename_binary_script:
- export PATH="/usr/local/opt/node@16/bin:/usr/local/bin:$PATH"
- node script/rename.js "Silicon.Mac"
binary_artifacts:
path: ./binaries/*
@ -189,6 +190,7 @@ intel_mac_task:
- export PATH="/usr/local/opt/node@16/bin:/usr/local/bin:$PATH"
- arch -x86_64 npx yarn dist || arch -x86_64 npx yarn dist
rename_binary_script:
- export PATH="/usr/local/opt/node@16/bin:/usr/local/bin:$PATH"
- node script/rename.js "Intel.Mac"
binary_artifacts:
path: ./binaries/*