You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 871ef69
Browse filesBrowse the repository at this point in the historyBrowse files
fix(release): hold every library-bearing packaged commit to the manifest strip, which now covers pacote's preparation scripts
The pre-strip manifest shape was accepted for any packaged commit, so a hand-planted commit carrying lib/pkg/ beside the source's unchanged package.json passed the tree check and a github: install of it would run prepare. Only the bundle-only chain commits predate the strip, so the fallback now applies to commits with no lib/pkg/ entry; the refusal names kept preparation scripts, which a path diff against the source cannot show.
The strip itself widens from scripts.prepare to every script npm's git fetcher (pacote) takes as a reason to run npm install --include=dev and a prepare step in a github: dependency's checkout: prepare, prepack, build, and the install hooks. With prepare alone removed the repository's build script still triggered the dev install. The docs place the tags up to v2.0.0 where they are, on release commits on main, not on packaged commits.
? "none (an entry a path diff cannot list, such as an empty subtree)"
340
353
: changed.join(", ");
341
354
thrownewError(
342
-
`${ref} is not ${source} plus ${PACKAGED}, minus ${MANIFEST}'s prepare script, and the removal of ${WORKFLOWS_DIR}/ alone: its tree is ${actual}, the rebuilt one is ${expected} (paths beyond those changed relative to ${source}: ${listed}); ${remedy}`,
355
+
`${ref} is not ${source} plus ${PACKAGED}, minus ${MANIFEST}'s preparation scripts, and the removal of ${WORKFLOWS_DIR}/ alone: its tree is ${actual}, the rebuilt one is ${expected} (paths beyond those changed relative to ${source}: ${listed}); ${remedy}`,
Copy file name to clipboardExpand all lines: docs/reference/library.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ npm install @vivswan/github-settings-as-code@next # the newest green main co
16
16
npm install github:Vivswan/github-settings-as-code#<packaged sha># one packaged commit of the build branch
17
17
```
18
18
19
-
`bun add` takes the same three forms. A pre-release version looks like `2.0.1-main.412.gb8df084`; the [Versioning](#versioning) section says how the three relate. The `github:` form works for every commit packaged since the library joined the packaged branch: such a commit carries `lib/pkg/` (the library build) beside `lib/index.js` (the action bundle), both built from its source commit by the workflow run named in its message, so nothing is built on your side. Older packaged commits, and the tags cut from them (v2.0.0 and earlier), carry the action bundle alone. To build the package from a checkout instead, `bun install && bun run build:lib` writes `lib/pkg/index.js` and `lib/pkg/index.d.ts`, the files the manifest's `exports` point at.
19
+
`bun add` takes the same three forms. A pre-release version looks like `2.0.1-main.412.gb8df084`; the [Versioning](#versioning) section says how the three relate. The `github:` form works for every commit packaged since the library joined the packaged branch: such a commit carries `lib/pkg/` (the library build) beside `lib/index.js` (the action bundle), both built from its source commit by the workflow run named in its message, and its `package.json` carries none of the scripts npm's git fetcher takes as a reason to install devDependencies and run a prepare step (`prepare`, `prepack`, `build`, the install hooks), so nothing is built or installed on your side. Packaged commits minted before that carry the action bundle alone, and the tags up to v2.0.0 point at release commits on `main` from when main still committed the bundle, not at packaged commits at all. To build the package from a checkout instead, `bun install && bun run build:lib` writes `lib/pkg/index.js` and `lib/pkg/index.d.ts`, the files the manifest's `exports` point at.
20
20
21
21
The package exports three paths: the entry (`.`), the committed settings.yml JSON Schema (`./settings.schema.json`), and its own manifest (`./package.json`).
Copy file name to clipboardExpand all lines: docs/upgrading/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ One page per major version. A major is the only release that can change what an
14
14
|`@vX.Y.Z`| Never | Byte-stable behavior; upgrade deliberately |
15
15
| A commit SHA | Never | The same, for repositories that pin actions by digest |
16
16
17
-
Every version tag points at a packaged commit carrying the built action; tags cut after the library joined the packaged branch also carry the library build (`lib/pkg/`, what the npm package of the same version ships), and v2.0.0 and earlier carry the action bundle alone. Its parent is the audited release commit on `main`, and a ruleset freezes the tag. Only the latest release is supported; fixes are not backported.
17
+
Every version tag cut since the `build` branch exists points at a packaged commit on it carrying the built action, and those cut since the library joined it also carry the library build (`lib/pkg/`, what the npm package of the same version ships); the packaged commit records its source, the audited release commit on `main`, in a trailer, and a ruleset freezes the tag. The tags up to v2.0.0 point at release commits on `main` from when main still committed the bundle. Only the latest release is supported; fixes are not backported.
0 commit comments