repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

release: expose CI manifest for v0.1.7

6334f5250a92eabea14e1ba0921685713bd23157

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (6)

.ci/ci.kdl

Modified
16 16 // Luci's capability-free container replaces Firefox's incompatible content sandbox.
17 17 run "CI=true MOZ_DISABLE_CONTENT_SANDBOX=1 xvfb-run -a mise run //:ci"
18 18 artifact "release" {
19 - path ".pi/tmp/release-artifacts/manifest.json"
19 + path "release-manifest.json"
20 20 required true
22 22 publish "pkg" {

.gitignore

Modified
1 1 node_modules/
2 2 **/node_modules/
3 3 /dist/
4 +/release-manifest.json
4 5 .worktrees/
5 6 .research/
6 7 .safe-clones/

CHANGELOG.md

Modified
2 2 # Changelog
4 4 ## Unreleased
6 +## 0.1.7
8 +- Expose the release checksum manifest at a flat CI artifact path
9 +- Keep release archives gated by the complete CI suite and relocated package validation
6 11 ## 0.1.6
8 13 - Keep FFmpeg active inside the nested Chrome E2E task

package-lock.json

Modified
2 2 "name": "pi-ext",
3 - "version": "0.1.6",
3 + "version": "0.1.7",
4 4 "lockfileVersion": 3,
5 5 "requires": true,
6 6 "packages": {
7 7 "": {
8 8 "name": "pi-ext",
9 - "version": "0.1.6",
9 + "version": "0.1.7",
10 10 "workspaces": [
11 11 "extensions/*"

package.json

Modified
2 2 "name": "pi-ext",
3 - "version": "0.1.6",
3 + "version": "0.1.7",
4 4 "private": true,
5 5 "type": "module",
6 6 "workspaces": [

scripts/build/release.ts

Modified
86 86 mkdirSync(scratch, { recursive: true });
87 87 const stage = mkdtempSync(join(scratch, "release-"));
88 88 const output = join(scratch, "release-artifacts");
89 + const manifestOutput = join(ROOT, "release-manifest.json");
89 90 // This task owns only its disposable artifact output, never dist or source.
91 + rmSync(manifestOutput, { force: true });
90 92 rmSync(output, { recursive: true, force: true });
91 93 mkdirSync(output, { recursive: true });
92 94 const packages = [];
123 125 throw new Error(`Collection: ${JSON.stringify(collection)}`);
124 126 const file = `pi-ext-${version}.tgz`;
125 127 const sha256 = archivePackage(stage, join(output, file), scratch);
126 - writeFileSync(
127 - join(output, "manifest.json"),
128 - `${JSON.stringify({ version, collection: { file, sha256, digest: treeDigest(stage) }, extensions: receipts }, null, "\t")}\n`,
129 - );
128 + const manifest = `${JSON.stringify({ version, collection: { file, sha256, digest: treeDigest(stage) }, extensions: receipts }, null, "\t")}\n`;
129 + writeFileSync(join(output, "manifest.json"), manifest);
130 + // Flat artifact path avoids Luci's nested-file staging limitation.
131 + writeFileSync(manifestOutput, manifest);
130 132 console.log(
131 133 `OK release pi-ext@${version}: ${packages.length} extensions; ${output}`,
133 135 } catch (error) {
136 + rmSync(manifestOutput, { force: true });
134 137 rmSync(output, { recursive: true, force: true });
135 138 throw error;
136 139 } finally {