I try manually touch .npmrc and set token into it:
touch ~/.npmrc && echo "/npm.pkg.github.com/:_authToken=MY_TOKEN" >> ~/.npmrc
BUT still get 401 error, like this:
Showing All Messages error An unexpected error occurred: "https://npm.pkg.github.com/download/MyPrivateDepedency: Request failed "401 Unauthorized"".
AND also my ci_post_clone.sh like this:
#!/bin/sh
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
touch ~/.npmrc && echo "registry=https://registry.npmjs.org/
/npm.pkg.github.com/:_authToken=MYTOKEN" >> ~/.npmrc
cat ~/.npmrc
source ~/.npmrc
brew install cocoapods
brew install node@16
brew link node@16
brew install yarn
pod setup
yarn
pod install
So, it is really confused that whether i could download github package for Xcode Cloud