Unverified Commit f3246d74 authored by Hong Minhee's avatar Hong Minhee
Browse files

Add repository field requirement for new packages

Updated AGENTS.md and CONTRIBUTING.md to include the requirement of adding
the `repository` field to `package.json` when adding a new package.
This is necessary for provenance information during npm publishing.

[ci skip]
parent 4397a496
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -173,10 +173,12 @@ When adding a new package to the monorepo, the following files must be updated:
 1. *AGENTS.md* and *CONTRIBUTING.md*: Add the package to the repository
    structure list
 2. *README.md*: Add the package to the "Packages" section table
 3. *.github/workflows/build.yaml*: Update the PR comment in the `publish` job
 3. *package.json*: Add the `repository` field to the package metadata.
    This is required for provenance information when publishing to npm.
 4. *.github/workflows/build.yaml*: Update the PR comment in the `publish` job
    (around the `thollander/actions-comment-pull-request` action)
 4. Root *deno.json*: Add the package path to the `workspace` array
 5. *pnpm-workspace.yaml*: Add the package path to the `packages` array
 5. Root *deno.json*: Add the package path to the `workspace` array
 6. *pnpm-workspace.yaml*: Add the package path to the `packages` array

**Conditional updates:**

+5 −3
Original line number Diff line number Diff line
@@ -176,10 +176,12 @@ When adding a new package to the monorepo, the following files must be updated:
 1. *AGENTS.md* and *CONTRIBUTING.md*: Add the package to the repository
    structure list.
 2. *README.md*: Add the package to the "Packages" section table.
 3. *.github/workflows/build.yaml*: Update the PR comment in the `publish` job
 3. *package.json*: Add the `repository` field to the package metadata.
    This is required for provenance information when publishing to npm.
 4. *.github/workflows/build.yaml*: Update the PR comment in the `publish` job
    (around the `thollander/actions-comment-pull-request` action).
 4. Root *deno.json*: Add the package path to the `workspace` array.
 5. *pnpm-workspace.yaml*: Add the package path to the `packages` array.
 5. Root *deno.json*: Add the package path to the `workspace` array.
 6. *pnpm-workspace.yaml*: Add the package path to the `packages` array.

**Conditional updates:**