@rightkit/release 0.2.149 → 0.2.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/publish-swift.mjs +8 -2
- package/release.mjs +6 -2
- package/rightkit-versions.json +34 -24
package/package.json
CHANGED
package/publish-swift.mjs
CHANGED
|
@@ -16,7 +16,10 @@ import { scanCrateForSecrets } from "./publish-cargo.mjs";
|
|
|
16
16
|
import { enforcePublicationGate, defaultEvidencePath } from "./publication-gate.mjs";
|
|
17
17
|
|
|
18
18
|
export const DEFAULT_SWIFT_GIT_URL = "https://github.com/bogusyogi/rightkit-swift.git";
|
|
19
|
-
|
|
19
|
+
// The mirror must reproduce the verified git subtree exactly (its tree id is
|
|
20
|
+
// compared), so only untracked build state is excluded. Tracked Xcode scheme
|
|
21
|
+
// metadata under .swiftpm ships with the package; SwiftPM consumers ignore it.
|
|
22
|
+
const MIRROR_EXCLUDES = new Set([".build", ".git", "Package.resolved", ".DS_Store"]);
|
|
20
23
|
|
|
21
24
|
export function parseSwiftPublishArgs(argv, env = process.env) {
|
|
22
25
|
const allowed = new Set(["--repo", "--dry-run", "--allow-dirty", "--evidence", "--workspace"]);
|
|
@@ -138,7 +141,10 @@ export function runSwiftPublish(options, execute = spawnSync) {
|
|
|
138
141
|
const prefix = git(["rev-parse", "--show-prefix"], packageDir, execute).replace(/\/$/, "");
|
|
139
142
|
const sourceCommit = gate.evidence?.commit ?? "HEAD";
|
|
140
143
|
const tree = git(["rev-parse", prefix ? `${sourceCommit}:${prefix}` : `${sourceCommit}^{tree}`], packageDir, execute);
|
|
141
|
-
|
|
144
|
+
// `git archive` filters by the current subdirectory, so archiving the package
|
|
145
|
+
// subtree from inside the package yields an empty tar; run it at the toplevel.
|
|
146
|
+
const toplevel = git(["rev-parse", "--show-toplevel"], packageDir, execute) || packageDir;
|
|
147
|
+
const archive = execute("git", ["archive", "--format=tar", "--mtime=1970-01-01T00:00:00Z", tree], { cwd: toplevel, windowsHide: true, maxBuffer: 128 * 1024 * 1024 });
|
|
142
148
|
if (archive.error || archive.status !== 0 || !archive.stdout?.length) throw new Error("Swift source archive creation failed");
|
|
143
149
|
const bytes = Buffer.from(archive.stdout);
|
|
144
150
|
if (gate.ok || !options.dryRun) verifySwiftSourceArchive(bytes, gate.evidence);
|
package/release.mjs
CHANGED
|
@@ -820,9 +820,13 @@ async function validateHostedWorkflows(root, appName, workflows, policy) {
|
|
|
820
820
|
const allowedRegeneratePermissions = new Set(["contents", "pull-requests"]);
|
|
821
821
|
const devMacSpan = workflow === "ci.yml" ? jobSpan("dev-mac-sign") : null;
|
|
822
822
|
const devMacSource = devMacSpan ? source.slice(devMacSpan.start, devMacSpan.end) : "";
|
|
823
|
-
|
|
823
|
+
// `mac: "notarize"` additionally allows the notary API key secrets; the
|
|
824
|
+
// job gate (push to the default branch, release environment) is the same.
|
|
825
|
+
const allowedDevMacSecrets = manifest?.devArtifact?.mac === "notarize"
|
|
826
|
+
? allowedMacosSecrets
|
|
827
|
+
: new Set(["APPLE_CERTIFICATE_BASE64", "APPLE_CERTIFICATE_PASSWORD", "APPLE_KEYCHAIN_PASSWORD"]);
|
|
824
828
|
const protectedDevMacSigning = workflow === "ci.yml"
|
|
825
|
-
&& manifest?.devArtifact?.mac === "sign"
|
|
829
|
+
&& (manifest?.devArtifact?.mac === "sign" || manifest?.devArtifact?.mac === "notarize")
|
|
826
830
|
&& /dev-mac-sign:\n(?: #[^\n]*\n)* needs: \[ci\]\n if: \$\{\{ github\.event_name == 'push' && github\.ref_name == github\.event\.repository\.default_branch \}\}\n environment: /.test(devMacSource);
|
|
827
831
|
const releaseChain = workflow === "release-candidate.yml" ? manifest?.candidate?.releaseChain : undefined;
|
|
828
832
|
const allowedReleaseSecrets = new Set(releaseChain?.publishSecrets ?? []);
|
package/rightkit-versions.json
CHANGED
|
@@ -13,27 +13,27 @@
|
|
|
13
13
|
"@rightkit/updates": "0.2.3"
|
|
14
14
|
},
|
|
15
15
|
"stagedNpm": {
|
|
16
|
-
"@rightkit/app-shell": "0.
|
|
16
|
+
"@rightkit/app-shell": "0.4.0",
|
|
17
17
|
"@rightkit/ax": "0.2.4",
|
|
18
|
-
"@rightkit/doc-render": "0.1.
|
|
19
|
-
"@rightkit/git": "0.2.
|
|
18
|
+
"@rightkit/doc-render": "0.1.5",
|
|
19
|
+
"@rightkit/git": "0.2.37",
|
|
20
20
|
"@rightkit/hooks": "0.1.2",
|
|
21
21
|
"@rightkit/i18n": "0.1.0",
|
|
22
22
|
"@rightkit/legal": "0.3.1",
|
|
23
23
|
"@rightkit/legal-ui": "0.2.0",
|
|
24
24
|
"@rightkit/license": "0.1.8",
|
|
25
25
|
"@rightkit/logs": "0.1.4",
|
|
26
|
-
"@rightkit/media-ui": "0.3.
|
|
27
|
-
"@rightkit/onboarding": "0.3.
|
|
28
|
-
"@rightkit/pdf-ui": "0.1.
|
|
26
|
+
"@rightkit/media-ui": "0.3.1",
|
|
27
|
+
"@rightkit/onboarding": "0.3.1",
|
|
28
|
+
"@rightkit/pdf-ui": "0.1.3",
|
|
29
29
|
"@rightkit/platform-ui": "0.2.0",
|
|
30
|
-
"@rightkit/qa": "0.4.
|
|
30
|
+
"@rightkit/qa": "0.4.1",
|
|
31
31
|
"@rightkit/qa-chrome": "0.1.3",
|
|
32
|
-
"@rightkit/release": "0.2.
|
|
33
|
-
"@rightkit/settings-ui": "0.3.
|
|
32
|
+
"@rightkit/release": "0.2.150",
|
|
33
|
+
"@rightkit/settings-ui": "0.3.1",
|
|
34
34
|
"@rightkit/shell": "0.1.0",
|
|
35
35
|
"@rightkit/tauri": "0.2.0",
|
|
36
|
-
"@rightkit/theme": "0.2.
|
|
36
|
+
"@rightkit/theme": "0.2.2",
|
|
37
37
|
"@rightkit/updates": "0.2.5"
|
|
38
38
|
},
|
|
39
39
|
"legacyNpm": {
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"0.2.32",
|
|
78
78
|
"0.2.33",
|
|
79
79
|
"0.2.34",
|
|
80
|
-
"0.2.35"
|
|
80
|
+
"0.2.35",
|
|
81
|
+
"0.2.36"
|
|
81
82
|
],
|
|
82
83
|
"@rightkit/legal-ui": [
|
|
83
84
|
"0.1.0",
|
|
@@ -184,7 +185,8 @@
|
|
|
184
185
|
"0.2.145",
|
|
185
186
|
"0.2.146",
|
|
186
187
|
"0.2.147",
|
|
187
|
-
"0.2.148"
|
|
188
|
+
"0.2.148",
|
|
189
|
+
"0.2.149"
|
|
188
190
|
],
|
|
189
191
|
"@rightkit/qa": [
|
|
190
192
|
"0.1.0",
|
|
@@ -195,12 +197,14 @@
|
|
|
195
197
|
"0.2.4",
|
|
196
198
|
"0.3.0",
|
|
197
199
|
"0.3.1",
|
|
198
|
-
"0.3.2"
|
|
200
|
+
"0.3.2",
|
|
201
|
+
"0.4.0"
|
|
199
202
|
],
|
|
200
203
|
"@rightkit/app-shell": [
|
|
201
204
|
"0.1.0",
|
|
202
205
|
"0.2.0",
|
|
203
|
-
"0.2.1"
|
|
206
|
+
"0.2.1",
|
|
207
|
+
"0.3.0"
|
|
204
208
|
],
|
|
205
209
|
"@rightkit/media-ui": [
|
|
206
210
|
"0.1.0",
|
|
@@ -210,11 +214,13 @@
|
|
|
210
214
|
"0.2.3",
|
|
211
215
|
"0.2.4",
|
|
212
216
|
"0.2.5",
|
|
213
|
-
"0.2.6"
|
|
217
|
+
"0.2.6",
|
|
218
|
+
"0.3.0"
|
|
214
219
|
],
|
|
215
220
|
"@rightkit/theme": [
|
|
216
221
|
"0.1.0",
|
|
217
|
-
"0.2.0"
|
|
222
|
+
"0.2.0",
|
|
223
|
+
"0.2.1"
|
|
218
224
|
],
|
|
219
225
|
"@rightkit/settings-ui": [
|
|
220
226
|
"0.1.0",
|
|
@@ -224,20 +230,23 @@
|
|
|
224
230
|
"0.2.4",
|
|
225
231
|
"0.2.5",
|
|
226
232
|
"0.2.6",
|
|
227
|
-
"0.2.7"
|
|
233
|
+
"0.2.7",
|
|
234
|
+
"0.3.0"
|
|
228
235
|
],
|
|
229
236
|
"@rightkit/onboarding": [
|
|
230
237
|
"0.1.0",
|
|
231
238
|
"0.2.0",
|
|
232
239
|
"0.2.1",
|
|
233
240
|
"0.2.2",
|
|
234
|
-
"0.2.3"
|
|
241
|
+
"0.2.3",
|
|
242
|
+
"0.3.0"
|
|
235
243
|
],
|
|
236
244
|
"@rightkit/doc-render": [
|
|
237
245
|
"0.1.0",
|
|
238
246
|
"0.1.1",
|
|
239
247
|
"0.1.2",
|
|
240
|
-
"0.1.3"
|
|
248
|
+
"0.1.3",
|
|
249
|
+
"0.1.4"
|
|
241
250
|
],
|
|
242
251
|
"@rightkit/platform-ui": [
|
|
243
252
|
"0.1.1",
|
|
@@ -245,7 +254,8 @@
|
|
|
245
254
|
],
|
|
246
255
|
"@rightkit/pdf-ui": [
|
|
247
256
|
"0.1.0",
|
|
248
|
-
"0.1.1"
|
|
257
|
+
"0.1.1",
|
|
258
|
+
"0.1.2"
|
|
249
259
|
],
|
|
250
260
|
"@rightkit/qa-chrome": [
|
|
251
261
|
"0.1.0",
|
|
@@ -326,13 +336,13 @@
|
|
|
326
336
|
"swift": {
|
|
327
337
|
"rightkit-swift": {
|
|
328
338
|
"url": "https://github.com/bogusyogi/rightkit-swift.git",
|
|
329
|
-
"version": "0.
|
|
339
|
+
"version": "0.4.0"
|
|
330
340
|
}
|
|
331
341
|
},
|
|
332
342
|
"stagedSwift": {
|
|
333
343
|
"rightkit-swift": {
|
|
334
344
|
"url": "https://github.com/bogusyogi/rightkit-swift.git",
|
|
335
|
-
"version": "0.
|
|
345
|
+
"version": "0.4.0"
|
|
336
346
|
}
|
|
337
347
|
},
|
|
338
348
|
"registry": {
|
|
@@ -383,7 +393,7 @@
|
|
|
383
393
|
"@rightkit/app-shell": "0.3.0",
|
|
384
394
|
"@rightkit/ax": "0.2.4",
|
|
385
395
|
"@rightkit/doc-render": "0.1.4",
|
|
386
|
-
"@rightkit/git": "0.2.
|
|
396
|
+
"@rightkit/git": "0.2.37",
|
|
387
397
|
"@rightkit/hooks": "0.1.2",
|
|
388
398
|
"@rightkit/i18n": "0.1.0",
|
|
389
399
|
"@rightkit/legal": "0.3.1",
|
|
@@ -396,7 +406,7 @@
|
|
|
396
406
|
"@rightkit/platform-ui": "0.2.0",
|
|
397
407
|
"@rightkit/qa": "0.4.0",
|
|
398
408
|
"@rightkit/qa-chrome": "0.1.3",
|
|
399
|
-
"@rightkit/release": "0.2.
|
|
409
|
+
"@rightkit/release": "0.2.149",
|
|
400
410
|
"@rightkit/settings-ui": "0.3.0",
|
|
401
411
|
"@rightkit/shell": "0.1.0",
|
|
402
412
|
"@rightkit/tauri": "0.2.0",
|