From 14a2f9febdeac83fb07f5b278385f07a7b424aa7 Mon Sep 17 00:00:00 2001 From: "Daniel A.C. Martin" Date: Mon, 6 Jan 2025 11:38:44 +0000 Subject: [PATCH] CI: Commit correct file in version script We don't want to commit the package lock-file itself anymore. Instead we should commit a substitute, as we do elsewhere. --- .npm/version.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.npm/version.sh b/.npm/version.sh index ded5db12..f96a4298 100644 --- a/.npm/version.sh +++ b/.npm/version.sh @@ -21,7 +21,8 @@ sed -i -E "s/\"@(${name})\/([^\"]*)\":([^\"]*)\"[^:]+\"/\"@\1\/\2\":\3\"^${versi {apps,components,lib}/*/package.json # Stage modified files - git add \ - lib/*/skel/*/package.json* \ - {apps,components,lib}/*/package.json - git add -f pnpm-lock.yaml +cp pnpm-lock.yaml pnpm-lock-committed.yaml +git add \ + lib/*/skel/*/package.json* \ + {apps,components,lib}/*/package.json \ + pnpm-lock-committed.yaml