diff --git a/.yarn/versions/1cdc2320.yml b/.yarn/versions/1cdc2320.yml new file mode 100644 index 000000000000..31f0d02b09d1 --- /dev/null +++ b/.yarn/versions/1cdc2320.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-npm-cli": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-constraints" + - "@yarnpkg/plugin-dlx" + - "@yarnpkg/plugin-essentials" + - "@yarnpkg/plugin-init" + - "@yarnpkg/plugin-interactive-tools" + - "@yarnpkg/plugin-nm" + - "@yarnpkg/plugin-pack" + - "@yarnpkg/plugin-patch" + - "@yarnpkg/plugin-pnp" + - "@yarnpkg/plugin-pnpm" + - "@yarnpkg/plugin-stage" + - "@yarnpkg/plugin-typescript" + - "@yarnpkg/plugin-version" + - "@yarnpkg/plugin-workspace-tools" + - "@yarnpkg/builder" + - "@yarnpkg/core" + - "@yarnpkg/doctor" diff --git a/packages/acceptance-tests/pkg-tests-specs/sources/commands/publish.test.ts b/packages/acceptance-tests/pkg-tests-specs/sources/commands/publish.test.ts index 2f2de4430a13..49b49b46b900 100644 --- a/packages/acceptance-tests/pkg-tests-specs/sources/commands/publish.test.ts +++ b/packages/acceptance-tests/pkg-tests-specs/sources/commands/publish.test.ts @@ -97,7 +97,8 @@ describe(`publish`, () => { await run(`install`); const {stdout} = await run(`npm`, `publish`, `--dry-run`, `--tolerate-republish`); - expect(stdout).toContain(`[DRY RUN]`); + expect(stdout).toContain(`Publishing to`); + expect(stdout).toContain(`dry run`); })); test(`should support --json flag`, makeTemporaryEnv({ diff --git a/packages/plugin-npm-cli/sources/commands/npm/publish.ts b/packages/plugin-npm-cli/sources/commands/npm/publish.ts index 04bc719d1dc4..4d8d108733e5 100644 --- a/packages/plugin-npm-cli/sources/commands/npm/publish.ts +++ b/packages/plugin-npm-cli/sources/commands/npm/publish.ts @@ -80,6 +80,8 @@ export default class NpmPublishCommand extends BaseCommand { stdout: this.context.stdout, json: this.json, }, async report => { + report.reportInfo(MessageName.UNNAMED, `Publishing to ${registry} with tag ${this.tag}`); + // Not an error if --tolerate-republish is set if (this.tolerateRepublish) { try { @@ -171,7 +173,7 @@ export default class NpmPublishCommand extends BaseCommand { } const finalMessage = this.dryRun - ? `[DRY RUN] Package would be published to ${registry} with tag ${this.tag}` + ? `Package archive not published (dry run)` : `Package archive published`; report.reportInfo(MessageName.UNNAMED, finalMessage);