Skip to content

Commit

Permalink
CI: Commit correct file in version script
Browse files Browse the repository at this point in the history
We don't want to commit the package lock-file itself anymore. Instead we
should commit a substitute, as we do elsewhere.
  • Loading branch information
daniel-ac-martin committed Jan 6, 2025
1 parent 95e0425 commit c6f3966
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .npm/version.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ sed -i -E "s/\"@(${name})\/([^\"]*)\":([^\"]*)\"[^:]+\"/\"@\1\/\2\":\3\"^${versi
{apps,components,components-internal,lib,lib-govuk}/*/package.json

# Stage modified files
git add \
{lib,lib-govuk}/*/skel/*/package.json* \
{apps,components,components-internal,lib,lib-govuk}/*/package.json
git add -f pnpm-lock.yaml
cp pnpm-lock.yaml pnpm-lock-committed.yaml
git add \
{lib,lib-govuk}/*/skel/*/package.json* \
{apps,components,components-internal,lib,lib-govuk}/*/package.json \
pnpm-lock-committed.yaml

0 comments on commit c6f3966

Please sign in to comment.