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'
|
3 replies
|
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
All reactions