fix: remove invalid Yarn config command
The command 'yarn config set preferAggregateCacheInfo' does not exist and was causing the workflow to fail. Removed invalid Yarn config commands and replaced with git config verification to ensure HTTPS rewrites are properly applied. Error in run #24: Usage Error: Couldn't find a configuration settings named "preferAggregateCacheInfo"
This commit is contained in:
@@ -49,10 +49,9 @@ jobs:
|
||||
# Configure authentication (last so it doesn't interfere with SSH -> HTTPS conversion)
|
||||
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
|
||||
|
||||
# Also configure for Yarn/NPM to prevent SSH fallback
|
||||
echo "Configuring Yarn to prefer HTTPS..."
|
||||
yarn config set --home enableImmutableInstalls false
|
||||
yarn config set --home preferAggregateCacheInfo true
|
||||
# Verify git config applied correctly
|
||||
echo "✅ Git URL rewrites configured for HTTPS"
|
||||
git config --global --get-regexp url
|
||||
|
||||
- name: Restore Yarn Cache
|
||||
uses: actions/cache@v4
|
||||
|
||||
Reference in New Issue
Block a user