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)
|
# 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/"
|
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
|
# Verify git config applied correctly
|
||||||
echo "Configuring Yarn to prefer HTTPS..."
|
echo "✅ Git URL rewrites configured for HTTPS"
|
||||||
yarn config set --home enableImmutableInstalls false
|
git config --global --get-regexp url
|
||||||
yarn config set --home preferAggregateCacheInfo true
|
|
||||||
|
|
||||||
- name: Restore Yarn Cache
|
- name: Restore Yarn Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user