- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/
- uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- run: yarn cache clean
- run: yarn cache clean --mirror
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true' # 의존 파일 설치.
run: yarn install --network-concurrency 1
해당 코드를 통해 해결이 가능했습니다.
참고
https://community.atlassian.com/t5/Bitbucket-questions/Yarn-install-fails/qaq-p/1555419