Repository navigation
[pull] main from pnpm:main - #437
Merged
Merged
Conversation
…regex/` (#13175) Reverts the lexicographical sorting of scripts introduced in #13074, as this was a breaking change in behaviour. When using `pnpm run --sequential /regex/`, scripts will now be executed in the order they are listed in `package.json`, giving developers control over the order without needing odd script prefixes. Fixes #13174.
) The GitHub Actions dependency checking in `outdated` and `update` hardcoded https://github.com as the git host of every `uses:` repository. On GitHub Enterprise Server, actions resolve against the GHES instance instead, so `git ls-remote` failed with "Repository not found" and the error aborted the entire command (the same failure mode existed for private or deleted action repositories on github.com). - Read refs failures per repository are now non-fatal: the repository is skipped with a `globalWarn` ("Skipping the GitHub Actions from ...") instead of failing the command. One warning per repository. - New `update.githubActionsServer` setting: the base URL of the GitHub server hosting the action repositories, used for both the git remote and the homepage links. Defaults to the GITHUB_SERVER_URL environment variable (set by GitHub runners, including GHES) and then https://github.com. Trailing slashes are stripped; the empty string counts as unset. - `update.githubActions: false` (explicit) now opts `pnpm outdated` and the interactive `pnpm update` out of GitHub Actions checking. Unset preserves the previous behavior, and the explicit `--include-github-actions` flag still overrides the config. Both stacks change together. On the pacquet side, the `outdated` command dispatch now threads the reporter type so the skip warnings reach the `globalWarn` channel, matching the TypeScript CLI's log emissions, and the recursive outdated now includes GitHub Actions, closing a pre-existing parity gap. Hardening: the skip warning is credential-redacted and stripped of control characters in both stacks (new redactAndSanitize export in the error package); the resolved server URL is restricted to http(s) (ERR_PNPM_GITHUB_ACTIONS_SERVER_PROTOCOL) so a repo-controlled value cannot select another git transport such as ext::; and the TypeScript getRepoRefs passes "--" before the repository URL like the Rust runner already did. The interactive update no longer re-enables actions after an explicit opt-out; only the --include-github-actions flag overrides it. Closes #13220.
…13229) The action reproduces this workflow's pattern (persistent chore/update-lockfile branch off latest main, force-pushed each run, one open PR reused via a gh-pr-list check), so the bespoke Prepare/Check/Commit/Create steps collapse into a single `uses:` step. Input mapping: - update-deps: latest + refresh-lockfile: true -> delete node_modules and pnpm-lock.yaml, then `pnpm update --latest -r` for a full refresh. - github-actions: true -> also bump the actions pinned in .github/workflows and action.yml. UPDATE_LOCKFILE_TOKEN already carries the workflow scope (it pushes the meta-updater's workflow changes today). - Node.js: derived from devEngines.runtime (no hardcoded `26`), staying on the pinned major. - update-pnpm: next-12 -> `pnpm self-update next-12`. - post-update: pnpm update-manifests. - changesets left on (default): `pnpm update --changeset` records a changeset only when a published package's production/peer deps change, and stays silent on devDependency-only bumps. - token: secrets.UPDATE_LOCKFILE_TOKEN, pushed via a single-use credential helper (works with persist-credentials: false; referenced only in the action's push step, never during install). The action is SHA-pinned (76f98d72, tagged v0), matching how actions/checkout and pnpm/setup are pinned here.
…d ignores (#13231) Since pacquet started honoring workspace-root ignore files when packing, collect_own_files fed them to the walker even when the manifest declares a files allowlist. A workspace package whose compiled lib/ directory is gitignored at the workspace root then published a tarball whose lib/ contained only the force-included main file: the ancestor rule excluded lib/** before the files-field filter ever saw it. npm-packlist (and the TypeScript `@pnpm/fs.packlist` built on it) lets the files field override ancestor ignore rules, so every `@pnpm/*` lib package published by pacquet since 12.0.0-alpha.13 shipped nearly empty. Apply workspace-inherited ignore files only in tiers b/c of the root-priority rule, i.e. when the manifest has no files allowlist. Because the TypeScript release publishes with the packageManager-pinned pacquet and no pacquet-only release can be cut first, also add a TEMPORARY release-workflow step that shadows the root .gitignore with a junk-only root .npmignore before packing, so the next release ships complete tarballs even with a broken pinned pacquet. Remove it once the pin carries this fix. Broken tarballs on npm are immutable, so a changeset patch-bumps every published lib package plus the pnpm CLI to force a full republish on the next release. Fixes #13164 Related to #13179
Pack every publishable workspace package in dry-run mode before the first immutable npm publish and verify each reported file list against the manifest-declared payload (files, main, module, types, exports, browser, bin, publishConfig.executableFiles). A packing regression like the one that shipped nearly-empty lib tarballs for five releases (#13164) now fails the release job before anything publishes. The verification is one pn compile-only (pack does not run prepublishOnly), four concurrent `pnpm pack --dry-run --json` chunks (recursive pack packs one project at a time and, unlike recursive publish, does not skip private packages — so publishable projects are selected by explicit name filters), and a single node pass over the reported file lists. No tarballs are written or read. Also give @pnpm/modules-mounter.daemon the lib/index.js entry point its manifest declares; the verifier caught that it never existed. Fixes #13179
…3233) A `catalog:` specifier in a workspace's dependencies or overrides failed to resolve when the install was routed through a pnpr server, erroring with "No catalog entry '<name>' was found for catalog 'default'." even though the catalog entry existed. The pnpr server reconstructs the requested workspace in a temp dir from the resolve request. That reconstruction wrote a pnpm-workspace.yaml with only a packages: section and no catalog definitions, and passed catalogs_override: None to the install — so the server had no catalogs and could not resolve any catalog: specifier, in dependencies or overrides. Forward the client's workspace catalogs in the resolve request and use them as the install's catalogs_override, which feeds both dependency and override catalog resolution. The client now sends its raw overrides (the server resolves their catalog: references) instead of pre-resolving them locally. Closes #13232
…stry under update --latest (#13234) ## Summary `pnpm update --latest` (pacquet/v12) fails with `ERR_PNPM_PACKAGE_MANAGER_UPDATE_RESOLVE_LATEST` when a dependency uses a local protocol (`workspace:` / `link:` / `file:`) pointing at a package that isn't published: it tries to fetch the dep's `latest` tag from the registry and gets a 404. This surfaced in the new `pnpm/update`-based update-lockfile job (#13229), whose `@pnpm-private/*` deps are `workspace:*`. A `workspace:` / `link:` / `file:` dependency links a local directory and may not be published at all, so there is no registry "latest" to fetch. The TS CLI already skips these in `@pnpm/outdated` (`isLocalRef`); pacquet only skipped the narrow `workspace:<path>` form. This broadens the `--latest` resolve gate to skip all three local protocols, preserving them verbatim. ## Tests `update_latest_preserves_local_protocol_dependencies` — a workspace package linking three unpublished siblings via `workspace:*`, `file:`, and `link:` alongside a real registry dep; asserts all three specifiers are preserved verbatim and the registry dep still resolves. Verified load-bearing: narrowing the guard to `workspace:`-only reproduces the exact 404 on the `file:` dep.
…13237) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Add a workflow that fires on the `issues: labeled` event and, when the added
label is `regression`, posts an alert to a dedicated Discord channel via the
DISCORD_WEBHOOK_REGRESSION secret. This gives the team a real-time ping
whenever the Oz triage agent or a maintainer tags a regression.
Issue fields are passed through env vars and read with `jq --arg` rather than
inlined into the shell, so a crafted issue title cannot inject shell code.
`allowed_mentions: {parse: []}` prevents a title like `@everyone` from pinging
the server, and the job runs with empty permissions since the only outbound
call is the webhook. The step is skipped when the secret is unset.
Also fix the regression report issue template, which declared the nonexistent
`type: regression` label; the real repository label is `regression`. Aligning
the template means template-filed reports are auto-labeled and therefore
auto-announced.
…rify (#13238) The verify step ran pn compile-only, whose typecheck-everything graph includes test tsconfigs; the release runner install does not provide the test-only devDependencies, so the v11.17.0 release failed with TS2307 errors before verification began. Build only the publishable projects own tsconfigs instead: the packed payloads need nothing else, and the build-artifacts step already proved the src graph compiles in this environment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )