mirror of
https://github.com/walter-base/common-workflow.git
synced 2026-09-08 19:26:46 -04:00
docs: correct npm scope guidance
The scope routes installs to the registry via .npmrc; it does not have to match the registry owner. Gitea's own example maps an `@test` scope to a `testuser` registry URL. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Jm9AfbCJBD4tkxnxxnq7Wm
This commit is contained in:
co-authored by
Claude Opus 5
parent
936760d68f
commit
c33db49634
@@ -107,8 +107,9 @@ on:
|
|||||||
default: false
|
default: false
|
||||||
npm_package_name:
|
npm_package_name:
|
||||||
description: >-
|
description: >-
|
||||||
Scoped npm package name, for example `@acme/agent-skills`. The scope must
|
Scoped npm package name, for example `@acme/agent-skills`. A scope is
|
||||||
match the registry owner. Required when publish_npm is enabled.
|
required because it is what routes installs to the registry, but it does
|
||||||
|
not have to match the registry owner. Required when publish_npm is enabled.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -55,7 +55,9 @@ Notes:
|
|||||||
the two can never drift apart
|
the two can never drift apart
|
||||||
- `package.json` is generated at publish time with the release version, which
|
- `package.json` is generated at publish time with the release version, which
|
||||||
keeps it in step with the plugin manifest versions that release-please bumps
|
keeps it in step with the plugin manifest versions that release-please bumps
|
||||||
- `npm_package_name` must be scoped, and the scope must match the registry owner
|
- `npm_package_name` must be scoped, because the scope is what routes installs to
|
||||||
|
the registry in `.npmrc`. The scope does not have to match the registry owner:
|
||||||
|
Gitea's own example maps an `@test` scope to a `testuser` registry URL
|
||||||
- `NPM_TOKEN` is used when set; otherwise `GITEA_TOKEN` is reused
|
- `NPM_TOKEN` is used when set; otherwise `GITEA_TOKEN` is reused
|
||||||
- publishing fails if any released path is absent from the packed tarball, which
|
- publishing fails if any released path is absent from the packed tarball, which
|
||||||
guards against npm's ignore rules silently dropping `.agents/` or
|
guards against npm's ignore rules silently dropping `.agents/` or
|
||||||
|
|||||||
Reference in New Issue
Block a user