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 8246ef0 commit 14a2f9f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .npm/version.sh
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,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

1 comment on commit 14a2f9f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please # to comment.