Skip to content

fix(publish): declare public npm access for the migrated packages - #640

Open
jacob-kreyenbuehl wants to merge 1 commit into
mainfrom
fix/publish-config-public
Open

jacob-kreyenbuehl wants to merge 1 commit into
mainfrom
fix/publish-config-public

Conversation

@jacob-kreyenbuehl

Copy link
Copy Markdown
Contributor

What

Add publishConfig.access: "public" to the 11 migrated scoped packages that were missing it: the 10 @sap-devx/inquirer-gui* packages and @sap-devx/webview-rpc.

Why

.changeset/config.json sets access: "restricted", and changeset publish uses that value whenever a package has no publishConfig.access (access: publishConfig?.access || access). So these 11 would run npm publish --access restricted against packages that are already public on npm. That fails.

I found this while diagnosing the red Release run after #639 (run 36707398978). Publish stopped with 24x 404 Not Found - PUT. The 404 is a separate npm problem: the trusted publishers of the migrated scopes still point at their old repos (@sap_oss/task_contrib_types -> SAP/task-explorer, @xml-tools/* -> sap/xml-tools, @sap-devx/inquirer-gui* -> SAP/inquirer-gui, and so on). This PR fixes the other half, which would fail immediately after that one is fixed.

Behaviour

Public packages stay public when published from the monorepo. The other 20 published scoped packages already declare this, and #582 added it for vsix-zst.

Not in this PR: the trusted-publisher retarget, which is npm side and needs owner access. Both have to land before the next publish attempt, because changeset publish aborts if any single package fails.

`.changeset/config.json` sets `access: "restricted"`, and `changeset publish`
falls back to that value for any scoped package that does not declare
`publishConfig.access`. The `@sap-devx/inquirer-gui` packages and
`@sap-devx/webview-rpc` were migrated without the field, so their next publish
would run `npm publish --access restricted` against packages that are already
public on npm.

Declare `publishConfig.access: "public"` on all 11, matching the other 20
published scoped packages in the workspace.

Signed-off-by: Jacob Kreyenbuehl <jacob.kreyenbuehl@sap.com>
@github-actions

Copy link
Copy Markdown
Contributor

Build Report

badge

Please note:

  1. Files only stay for around 14 days!
  2. This comment will be updated with the data of the last successful build of this PR.
Name Link
Commit 485eae2
Logs https://github.com/SAP/app-studio-toolkit/actions/runs/36708720088
VSIX Files https://github.com/SAP/app-studio-toolkit/actions/runs/36708720088/artifacts/11093820717

@jacob-kreyenbuehl jacob-kreyenbuehl self-assigned this Sep 30, 2026
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.

1 participant