Open pitgrap opened 2 years ago
any resolution on this?
up
on Setup NodeJS I added the secrets.PAT and works.
Also my .npmrc
has the registry @my-company:registry=https://npm.pkg.github.com
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://npm.pkg.github.com'
check-latest: true
env:
NODE_AUTH_TOKEN: ${{ secrets.PAT }}
I'm not sure, if it is a problem with this github action, but somehow my environment variables are ignored, if i use this action. If i install pnpm via npm, it works.
Example of action that is not working:
Result:
ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/@my-company/core/-/core-1.2.1.tgz: Not Found - 404
So pnpm is not using the private registry, like ignoring the env config.But if I run the following code without the action-setup, it works: