Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
ci(pdfjs): bump pdfjs-dist with a lockfile-only update
Claude95cc960d1df6
diff --git a/.github/workflows/update-pdfjs-viewer.yml b/.github/workflows/update-pdfjs-viewer.ymlindex 6eb85660f1..463ea3fe5b 100644--- a/.github/workflows/update-pdfjs-viewer.yml+++ b/.github/workflows/update-pdfjs-viewer.yml@@ -54,12 +54,16 @@ jobs:- name: Bump pdfjs-distid: bump# `update --latest` writes both package.json and the lockfile, and keeps the- # exact pin exact. It installs too, which the re-vendor and the suites below- # need — build.ts copies the library straight out of node_modules.+ # exact pin exact. A filtered update also installs only the filtered project,+ # which prunes every other package from the hoisted node_modules and breaks the+ # root postinstall, so it only rewrites the lockfile and a full install follows.+ # The re-vendor and the suites below need that install: build.ts copies the+ # library straight out of node_modules.run: |read_version() { node -p "require('./packages/pdfjs-viewer/package.json').devDependencies['pdfjs-dist']"; }from=$(read_version)- pnpm --filter pdfjs-viewer update pdfjs-dist --latest+ pnpm --filter pdfjs-viewer update pdfjs-dist --latest --lockfile-only+ pnpm install --frozen-lockfileto=$(read_version)[ "$from" = "$to" ] && changed=false || changed=true{