@rightkit/ci 0.3.2 → 0.3.4

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/install.mjs CHANGED
@@ -12,7 +12,7 @@ import { MANIFEST_FILENAME, validateManifest } from "./manifest.mjs";
12
12
  import { applyPlan, planSync } from "./sync.mjs";
13
13
 
14
14
  export const DEFAULT_MATRIX = { os: ["ubuntu-latest", "macos-latest", "windows-latest"], node: ["22.13", "24"] };
15
- export const DEFAULT_PACKAGE_MANAGER = "pnpm@11.25.0";
15
+ export const DEFAULT_PACKAGE_MANAGER = "pnpm@12.16.1";
16
16
  export const DEFAULT_TEMPLATE_VERSION = "1.8.0";
17
17
 
18
18
  /**
package/manifest.mjs CHANGED
@@ -547,7 +547,7 @@ export function parsePackageManager(spec) {
547
547
  }[name];
548
548
  const runPrefix = { pnpm: "pnpm run", npm: "npm run", yarn: "yarn run" }[name];
549
549
  const setup = {
550
- pnpm: ` - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10\n with:\n version: ${version}`,
550
+ pnpm: ` - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0\n with:\n version: ${version}`,
551
551
  npm: "",
552
552
  yarn: ` - run: corepack enable && corepack prepare yarn@${version} --activate`,
553
553
  }[name];
@@ -1427,7 +1427,7 @@ ${pm.setup ? `${pm.setup}\n` : ""} - run: ${pm.installCommand}${ownershipSt
1427
1427
  git cat-file -e "$head_sha^{commit}" 2>/dev/null || fail "source commit $head_sha is not in this repository's history"
1428
1428
  git merge-base --is-ancestor "$head_sha" "$GITHUB_SHA" || fail "source commit $head_sha is not an ancestor of the signing revision $GITHUB_SHA"
1429
1429
  mkdir -p "$RUNNER_TEMP/dev-signed"
1430
- jq -n --arg repo "$GITHUB_REPOSITORY" --arg run "$run_id" --argjson artifactId "$artifact_id" --arg artifactName "$artifact_name" --arg sourceSha "$head_sha" --arg requested "$INPUT_SOURCE_SHA" --arg signingRevision "$GITHUB_SHA" '{schema: 1, repository: $repo, runId: $run, artifactId: $artifactId, artifactName: $artifactName, sourceSha: $sourceSha, requestedSourceSha: $requested, signingRevision: $signingRevision}' > "$RUNNER_TEMP/dev-signed/source-verification.json"
1430
+ jq -n --arg r "$GITHUB_REPOSITORY" --arg n "$run_id" --argjson a "$artifact_id" --arg m "$artifact_name" --arg s "$head_sha" --arg q "$INPUT_SOURCE_SHA" --arg g "$GITHUB_SHA" '{schema: 1, repository: $r, runId: $n, artifactId: $a, artifactName: $m, sourceSha: $s, requestedSourceSha: $q, signingRevision: $g}' > "$RUNNER_TEMP/dev-signed/source-verification.json"
1431
1431
  {
1432
1432
  printf 'run_id=%s\\n' "$run_id"
1433
1433
  printf 'artifact_id=%s\\n' "$artifact_id"
@@ -2250,7 +2250,8 @@ export function checkJob(manifest, lane = "ci") {
2250
2250
  ` - uses: ${pins.checkout}`,
2251
2251
  " with:",
2252
2252
  ...(ref ? [` ref: ${ref}`] : []),
2253
- " fetch-depth: 1",
2253
+ // Depth 2: the gate's lint-waiver-added rule (G30) compares a commit already on main with its first parent (rightkit#1865).
2254
+ " fetch-depth: 2",
2254
2255
  " persist-credentials: false",
2255
2256
  ` - uses: ${pins.setupNode}`,
2256
2257
  " with:",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/ci",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Public-repo-only GitHub Actions workflow layer: templates, visibility gate, sync/drift/adopt/uninstall for right-git.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "type": "module",
@@ -22,10 +22,12 @@
22
22
  "templates",
23
23
  "*.mjs",
24
24
  "*.json",
25
- "!*.test.mjs",
26
- "!test-support.mjs"
25
+ "!*.test.mjs"
27
26
  ],
28
27
  "sideEffects": false,
28
+ "scripts": {
29
+ "test": "node --test pack-smoke.test.mjs"
30
+ },
29
31
  "publishConfig": {
30
32
  "registry": "https://registry.npmjs.org/",
31
33
  "access": "public"
@@ -35,7 +37,5 @@
35
37
  "url": "git+https://github.com/bogusyogi/rightkit.git",
36
38
  "directory": "packages/ci"
37
39
  },
38
- "scripts": {
39
- "test": "node --test *.test.mjs"
40
- }
41
- }
40
+ "packageManager": "pnpm@12.16.1"
41
+ }