Replies: 2 comments 3 replies
-
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/setup-node@v3
with:
settings-path: .npmrc
- uses: actions/npm-auth@v1
with:
registry-url: 'https://npm.pkg.github.com'
|
Beta Was this translation helpful? Give feedback.
-
|
For anyone else struggling with the npm install, this is what worked for me: On the package page, ensure that the repo which is installing the package has read access. You might need GitHub admin access to do this, but there should be a link to In the workflow .yml file where the package is being installed, provide the This is all that I needed to do for this to work, no need to create a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
General
Body
I have published a NPM package on Github, set it up as a dependency locally and in Vercel no problem. I'm just having issues getting it installing as a dependency in Github actions.
My package: https://github.com/wrux/sanity-analytics-dashboard-widgets/pkgs/npm/sanity-analytics-dashboard-widgets
Here's my local
.npmrcconfig, nothing special:I understand that I need to setup my action properly with
actions/setup-node@v3, but I'm not sure where I'm going wrong. I assume the configuration will be very simple and I've read through the readme, but not sure where to proceed.Here's what my workflow file looks like.
Any ideas here? I cannot really find much info on how to setup a project with Github's NPM package registry as a dependency.
Beta Was this translation helpful? Give feedback.
All reactions