小编The*_*mis的帖子

npm install private github repo github actions

I have a nodejs project that uses a private git repo as one of it's dependencies. It's defined in package.json like this:

"repo name": "git+https://{access_token}@github.com/{owner}/{repo name}.git#master"

My workflow file looks like this:

name: Tests

on: [push]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v3
        with:
          node-version: 16
      - name: Install modules
        run: npm ci
      - name: Run tests
        run: npm test
Run Code Online (Sandbox Code Playgroud)

npm ci however fails with npm ERR! remote: Repository not found.

Using npm ci on my …

git github node.js npm github-actions

1
推荐指数
1
解决办法
1998
查看次数

标签 统计

git ×1

github ×1

github-actions ×1

node.js ×1

npm ×1