Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

Package not found in the Github Registry

Solved! Go to Solution.

I have a nodejs workflow and of course I am trying to install dependencies. One of those dependencies is in another repository's package repo. I have the workflow authenticating just fine, but the problem is that it doesn't find the package. 

 

Am I mising something?  The package is under joekaiser/test and the workflow is running at joekaiser/ci-test

 

To be clear, I know the pacakge exists. The same project builds in AWS CodePipeline.

 

npm ERR! 404 Not Found - GET https://npm.pkg.github.com/@joekaiser%2ftest - npm package "test" does not exist under owner "joekaiser"

 

name: BuildDeploy

on:
  push:
    branches:
      - release

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Setup Node.js
      uses: actions/setup-node@v1
      with:
        node-version: 12
        registry-url: https://npm.pkg.github.com/
        scope: '@joekaiser'
    - name: npm install and build
      env:
        NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
        CI: true
      run: |
        npm install
        npm run build

 

1 Reply
Solution
Copilot Lvl 3
Message 2 of 2

Re: Package not found in the Github Registry

At the moment you'll need a personal access token for that.

 

@Phanatic:

Ahh, that's what I figured. The GITHUB_TOKEN we generate is scoped to the repository that is running the Workflow. Unfortunately, this doesn't allow us to install or publish packages from/to other repositories. I'll bring this up in planning and we can figure out how to proceed here.

 

Related issue