Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions actions/api-client-publish/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ const pkg = {
import: './dist/index.js',
},
},
// Link the package to its (public) source repo so GitHub Packages inherits PUBLIC visibility
// and consuming repos can install it; without this it defaults to private -> cross-repo 403.
repository: {
type: 'git',
url: `git+https://github.com/${process.env.GITHUB_REPOSITORY || 'JorisJonkers-dev/api-clients'}.git`,
},
publishConfig: {
registry: process.env.NODE_REGISTRY_URL,
access: 'public',
Expand Down
Loading