Skip to content

Commit 7b0f301

Browse files
authored
Fix OIDC publishing for scoped packages (#6911)
## What's the problem this PR addresses? At #6898, I made a mistake, making it not work for scoped packages.
1 parent ab55d61 commit 7b0f301

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.yarn/versions/c1a29eeb.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
releases:
2+
"@yarnpkg/cli": patch
3+
"@yarnpkg/plugin-npm": patch
4+
"@yarnpkg/plugin-npm-cli": patch
5+
6+
declined:
7+
- "@yarnpkg/plugin-compat"
8+
- "@yarnpkg/plugin-constraints"
9+
- "@yarnpkg/plugin-dlx"
10+
- "@yarnpkg/plugin-essentials"
11+
- "@yarnpkg/plugin-init"
12+
- "@yarnpkg/plugin-interactive-tools"
13+
- "@yarnpkg/plugin-nm"
14+
- "@yarnpkg/plugin-pack"
15+
- "@yarnpkg/plugin-patch"
16+
- "@yarnpkg/plugin-pnp"
17+
- "@yarnpkg/plugin-pnpm"
18+
- "@yarnpkg/plugin-stage"
19+
- "@yarnpkg/plugin-typescript"
20+
- "@yarnpkg/plugin-version"
21+
- "@yarnpkg/plugin-workspace-tools"
22+
- "@yarnpkg/builder"
23+
- "@yarnpkg/core"
24+
- "@yarnpkg/doctor"

packages/plugin-npm/sources/npmHttpUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ async function getOidcToken(registry: string, {configuration, ident}: {configura
625625

626626
try {
627627
const response = await httpUtils.post(
628-
`${registry}/-/npm/v1/oidc/token/exchange/package/${ident.name.replace(/^@/, `%40`)}`,
628+
`${registry}/-/npm/v1/oidc/token/exchange/package${getIdentUrl(ident)}`,
629629
null,
630630
{
631631
configuration,

0 commit comments

Comments
 (0)