Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
- name: Require published Contractual beta dependencies
run: |
for package_name in @contractual/cli @contractual/governance; do
version="$(jq -r --arg name "$package_name" '.devDependencies[$name]' package.json)"
test "$(jq -r --arg name "$package_name" '.devDependencies[$name]' package.json)" = beta
version="$(jq -r '.version' "node_modules/$package_name/package.json")"
[[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$ ]]
test "$(npm view "$package_name@$version" version)" = "$version"
done
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
- Keep workflow automation in GitHub Actions; do not add a `scripts/` folder for workflow helpers. Manage rulesets directly in GitHub, not checked-in JSON copies.
- Always ask Omer before creating, moving, or pushing version tags, publishing a GitHub Release or package, changing distribution tags, or dispatching any workflow that performs these actions. Code fixes and PRs are not release approval.
- Use existing version tags in documentation, not commit SHAs or nonexistent stable aliases. The latest numbered development tag is `v0.1.0-dev.14`.
- Keep `patches/@contractual__changesets@0.1.0-dev.5.patch` until an approved dependency upgrade contains the YAML fix. No npm publication is needed to build this patch into the Action.
- Contractual dependencies use the npm `beta` dist-tag, with exact versions recorded in the lockfile and bundled in `dist/`. Preserve the malformed-YAML version-sync regression test when upgrading.
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Commit `dist/` with source changes. CI rebuilds the bundle and checks for drift

Ask Omer before creating or moving version tags, publishing anything, or changing release aliases. Existing tags are left intact. Documentation uses `@v0.1.0-dev.14`, the highest existing tag; it does not yet include the changes in this PR. A new version and an optional major alias require a separate approval after review and validation.

## Dependency patch
## Contractual dependencies

The checked-in pnpm patch backports the core repository's malformed-YAML version-sync fix to `@contractual/changesets@0.1.0-dev.5`. This keeps installations reproducible without publishing a new package. Remove the patch only after upgrading to an approved published dependency that includes the fix and passing the regression test.
CLI and governance use npm's `beta` dist-tag in `package.json`. The lockfile records the exact resolved versions, and the Action bundles those versions in `dist/`. To adopt a newer beta, run `pnpm update @contractual/cli @contractual/governance`, run the checks above, and commit the lockfile and rebuilt bundle. A moving npm tag does not change an already released Action.

The published beta dependencies include the malformed-YAML version-sync fix, so no local patch is needed. Keep the regression test passing when updating dependencies.
90,088 changes: 61,436 additions & 28,652 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@
"@actions/core": "^1.10.1",
"@actions/exec": "^3.0.0",
"@actions/github": "^6.0.0",
"@octokit/rest": "^20.1.1",
"@redocly/openapi-core": "^1.0.0"
"@octokit/rest": "^20.1.1"
},
"devDependencies": {
"@contractual/cli": "0.1.0-dev.7",
"@contractual/governance": "0.1.0-dev.7",
"@contractual/cli": "beta",
"@contractual/governance": "beta",
"@types/node": "^20.11.0",
"@vercel/ncc": "^0.38.4",
"rimraf": "^5.0.5",
"tsup": "^8.0.1",
"typescript": "~5.7.2",
"vite": "^7.3.5",
"vitest": "^4.1.11"
"vite": "^7.3.7",
"vitest": "^4.1.12"
}
}
76 changes: 0 additions & 76 deletions patches/@contractual__changesets@0.1.0-dev.5.patch

This file was deleted.

Loading
Loading