How to install private github repository via npm through "git+https" github actions workflow ci #25936
-
I found the same problem with installing through According to the same topic, I got the following error on
ci.yml
package.json
This But how can I solve this issue with Github Actions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @aarefiev, Glad to see you in Github Community Forum!
Please add Please refer to the link for more details. Thanks. |
Beta Was this translation helpful? Give feedback.
Hi @aarefiev,
Glad to see you in Github Community Forum!
actions/checkout@v2
will persist GITHUB_TOKEN and add extrahttp
header to latter git operations.Please add
persist-credential: false
toactions/checkout@v2
, and add below command before npm command:run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/
Please refer to the link for more details.
Thanks.