Closed plylrnsdy closed 1 year ago
Can you try separating this block:
- name: Install pnpm
uses: pnpm/action-setup@v2 # I try both v2 or v2.2.2
with:
version: 7
run_install: true
into:
- name: Install pnpm
uses: pnpm/action-setup@v2 # I try both v2 or v2.2.2
with:
version: 7
run_install: false
- name: Install dependencies
run: pnpm install --recursive
and see if it's the same result?
I try to remove run_install: true
name: Deploy Blog
on:
push:
branches:
- main
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
# ... other action
Now it can run into Install dependencies, but it throws same error:
Run pnpm install --frozen-lockfile
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +575
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /home/runner/.local/share/pnpm/store/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 575, reused 0, downloaded 10, added 9
WARN GET https://registry.npmjs.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.5.tgz error (ERR_PNPM_FETCH_404). Will retry in 10 seconds. 2 retries left.
Progress: resolved 575, reused 0, downloaded 53, added 50
Progress: resolved 575, reused 0, downloaded 12[6](https://github.com/plylrnsdy/plylrnsdy.github.io_source/actions/runs/3065265181/jobs/4949190343#step:5:7), added 122
Progress: resolved 5[7](https://github.com/plylrnsdy/plylrnsdy.github.io_source/actions/runs/3065265181/jobs/4949190343#step:5:8)5, reused 0, downloaded 167, added 165
Progress: resolved 575, reused 0, downloaded 1[8](https://github.com/plylrnsdy/plylrnsdy.github.io_source/actions/runs/3065265181/jobs/4949190343#step:5:9)4, added 183
Progress: resolved 575, reused 0, downloaded 244, added 242
Progress: resolved 575, reused 0, downloaded 278, added 276
Progress: resolved 575, reused 0, downloaded 318, added 318
Progress: resolved 575, reused 0, downloaded 422, added 420
WARN GET https://registry.npmjs.org/concat-map/download/concat-map-0.0.1.tgz error (ERR_PNPM_FETCH_404). Will retry in [10](https://github.com/plylrnsdy/plylrnsdy.github.io_source/actions/runs/3065265181/jobs/4949190343#step:5:11) seconds. 2 retries left.
Progress: resolved 575, reused 0, downloaded 506, added 504
Progress: resolved 575, reused 0, downloaded 564, added 564
Progress: resolved 575, reused 0, downloaded 571, added 571
WARN GET https://registry.npmjs.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.5.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.
Progress: resolved 575, reused 0, downloaded 572, added 572
Progress: resolved 575, reused 0, downloaded 573, added 573
WARN GET https://registry.npmjs.org/concat-map/download/concat-map-0.0.1.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.
ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.5.tgz: Not Found - 404
No authorization header was set for the request.
Error: Process completed with exit code 1.
Then it's not the fault of pnpm/action-setup
. It's either a pnpm
bug, a registry bug, or a package.json
bug.
Thanks.
This issue is related to pnpm#3744.
Because I use third party's registry globally, I need to setup same registry on GitHub Actions.
name: Deploy Blog
on:
push:
branches:
- main
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Use taobao registry
run: npm config set registry https://registry.npmmirror.com/
- name: Install dependencies
run: pnpm install --frozen-lockfile
# ... other action
My config
Error Message:
I try to open these links. They actual do not exist.