Skip to content

build: Upgrade to PNPM 11#3132

Draft
scotttjob wants to merge 1 commit into
masterfrom
scott_t/pnpm11
Draft

build: Upgrade to PNPM 11#3132
scotttjob wants to merge 1 commit into
masterfrom
scott_t/pnpm11

Conversation

@scotttjob
Copy link
Copy Markdown
Contributor

Why Is This Changing?

  1. PNPM has a new version, so we're now using it!

What Is Changing?

  1. PNPM is updating to version 11.

Consumer Impact

  • Impact: None
  • Action required: None
  • Breaking change: No (or, ideally no)

Validation

  • Everything should work locally as-is.

NOTE: We still need to add approval for build processes, I wanted us to spend a quick minute exploring the ones requesting access to run as a group (maybe on standup this morning).

Reviewer Notes

  • Nope, should be fine as-is.

Changes can be
tested via Pre-release


In Atlantis we use Github's built in pull request reviews.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying atlantis with  Cloudflare Pages  Cloudflare Pages

Latest commit: 57f6872
Status:🚫  Build failed.

View logs

Comment thread .circleci/config.yml
corepack prepare pnpm@latest-10 --activate
pnpm config set store-dir ~/.pnpm-store
corepack prepare pnpm@11.0.5 --activate
echo 'export pnpm_config_store_dir="$PWD/.pnpm-store"' >> "$BASH_ENV"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did the store-dir setup change? I didn't see that as a breaking change in their guide: https://pnpm.io/11.x/migration

Comment thread scripts/e2e.sh
docker run --rm -it \
-v $(pwd):/atlantis \
-v atlantis_pnpm_store:/pnpm-store/v10 \
-v atlantis_pnpm_store_v11:/pnpm-store/v11 \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, this looks good.

Comment thread pnpm-workspace.yaml
husky: set this to true or false
nx: set this to true or false

minimumReleaseAge: 7
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This in minutes, so need to convert to 7 days https://pnpm.io/settings#minimumreleaseage

Comment thread pnpm-workspace.yaml

minimumReleaseAge: 7
publicHoistPattern:
- run-node
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unclear if we still need this publicHoistPattern. We didn't have it with v10 (unless pnpm read npmrc), so I'm not sure we still need it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants