@rightkit/git 0.2.29 → 0.2.30
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/manifest.mjs +3 -1
- package/package.json +1 -1
package/manifest.mjs
CHANGED
|
@@ -1032,13 +1032,15 @@ export function ownershipStep(manifest, lane = "ci") {
|
|
|
1032
1032
|
const command = name === "pnpm" ? "pnpm exec right-release ownership --app ."
|
|
1033
1033
|
: name === "npm" ? "npm exec -- right-release ownership --app ."
|
|
1034
1034
|
: "yarn exec right-release ownership --app .";
|
|
1035
|
+
// CI stays advisory until ownership approval keys are enrolled; release-candidate stays strict.
|
|
1036
|
+
const ownershipCommand = lane === "ci" ? `${command} --advisory-when-pending` : command;
|
|
1035
1037
|
// Only release-candidate dispatches declare source_revision. Referencing
|
|
1036
1038
|
// inputs.source_revision from other lanes makes actionlint reject their
|
|
1037
1039
|
// generated workflows, even when guarded by an event-name expression.
|
|
1038
1040
|
const sourceRevision = lane === "release-candidate"
|
|
1039
1041
|
? "\${{ inputs.source_revision }}"
|
|
1040
1042
|
: "\${{ github.sha }}";
|
|
1041
|
-
return `\n - name: RightKit ownership (protected registry roots)\n shell: bash\n run: test "$(git rev-parse HEAD)" = "${sourceRevision}" && ${
|
|
1043
|
+
return `\n - name: RightKit ownership (protected registry roots)\n shell: bash\n run: test "$(git rev-parse HEAD)" = "${sourceRevision}" && ${ownershipCommand}`;
|
|
1042
1044
|
}
|
|
1043
1045
|
|
|
1044
1046
|
/**
|
package/package.json
CHANGED