From 5352cc34d790720a5fe3ec7f4a872499cef9432a Mon Sep 17 00:00:00 2001 From: Myles Scolnick Date: Wed, 18 Nov 2026 10:26:41 -0800 Subject: [PATCH 1/8] ci: release through reviewed App-created PRs --- .github/workflows/release-pr.yml | 50 +++++++++++ .github/workflows/release-tag.yml | 36 ++++++++ .github/workflows/release.yml | 10 ++- AGENTS.md | 2 +- CONTRIBUTING.md | 10 +-- RELEASING.md | 41 +++++++++ package.json | 143 +++++++++++++++--------------- scripts/release.sh | 11 +++ 8 files changed, 222 insertions(+), 81 deletions(-) create mode 100644 .github/workflows/release-pr.yml create mode 100644 .github/workflows/release-tag.yml create mode 100644 RELEASING.md create mode 100755 scripts/release.sh diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml new file mode 100644 index 0000000..8d5e276 --- /dev/null +++ b/.github/workflows/release-pr.yml @@ -0,0 +1,50 @@ +name: Prepare release PR +on: + workflow_dispatch: + inputs: + version: + description: Stable X.Y.Z version or patch, minor, major + type: string + required: true +permissions: {} +concurrency: + group: prepare-release-pr + cancel-in-progress: false +jobs: + prepare: + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + environment: release + timeout-minutes: 15 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + ref: main + persist-credentials: false + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: 24 + - name: Prepare versions + id: version + env: + REQUESTED_VERSION: ${{ inputs.version }} + run: | + npm version "$REQUESTED_VERSION" --no-git-tag-version --ignore-scripts --package-lock=false + echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT" + - name: Open release PR + id: pr + uses: marimo-team/internal-gh-actions/release-pr@3a52681ab8e200a34175ec8e5d14985e4e7ce3c3 + with: + app-id: ${{ vars.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + manifest: package.json + version: ${{ steps.version.outputs.version }} + files: | + package.json + - name: Link release PR + env: + PR_URL: ${{ steps.pr.outputs.url }} + run: | + echo "$PR_URL" >> "$GITHUB_STEP_SUMMARY" diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml new file mode 100644 index 0000000..6cdb9e0 --- /dev/null +++ b/.github/workflows/release-tag.yml @@ -0,0 +1,36 @@ +name: Tag merged release +on: + pull_request: + types: [closed] + branches: [main] +permissions: {} +jobs: + tag: + if: >- + github.event.pull_request.merged == true && + github.event.pull_request.head.repo.full_name == github.repository && + startsWith(github.event.pull_request.head.ref, 'release/') && + startsWith(github.event.pull_request.title, 'release: ') + runs-on: ubuntu-latest + environment: release + timeout-minutes: 60 + concurrency: + group: release-tag-${{ github.event.pull_request.number }} + cancel-in-progress: false + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + ref: ${{ github.event.pull_request.merge_commit_sha }} + fetch-depth: 0 + persist-credentials: false + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: 24 + - name: Tag merged release + uses: marimo-team/internal-gh-actions/release-tag@3a52681ab8e200a34175ec8e5d14985e4e7ce3c3 + with: + app-id: ${{ vars.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + manifest: package.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa19323..965a1fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,12 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 + persist-credentials: false + - name: Validate release tag + if: startsWith(github.ref, 'refs/tags/') + uses: marimo-team/internal-gh-actions/validate-release@3a52681ab8e200a34175ec8e5d14985e4e7ce3c3 + with: + manifest: package.json - name: ⎔ Setup pnpm uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 @@ -123,9 +129,9 @@ jobs: runs-on: "${{ vars.CI_RUNNER_SMALL || 'ubuntu-latest' }}" steps: - name: 📣 Notify release result - uses: marimo-team/internal-gh-actions/release-notification@91f15bebd3f322db6717ba5a17983928a47ec991 # main + uses: marimo-team/internal-gh-actions/release-notification@3a52681ab8e200a34175ec8e5d14985e4e7ce3c3 with: - status: ${{ (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) && 'failure' || 'success' }} + results: ${{ toJSON(needs) }} slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_RELEASES }} artifact-url: "https://npmjs.com/package/@marimo-team/codemirror-languageserver" permissions: diff --git a/AGENTS.md b/AGENTS.md index 7a81231..b8c77f1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,4 +15,4 @@ pnpm run dev # vite dev server ``` - Licensed BSD-3-Clause (inherited from the upstream fork), unlike the Apache-2.0 sibling repos. -- Release: pushing a `v*` tag triggers release.yml, which publishes to npm via OIDC. +- Release: `./scripts/release.sh patch` requests a release PR; see [RELEASING.md](RELEASING.md). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1152791..5f1429f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,15 +48,9 @@ Types: - test: Adding or updating tests - chore: Changes to build process or auxiliary tools -## Release Process +## Releases -For maintainers only: - -```bash -git checkout main -git pull -npx bumpp --no-git-check=false -``` +See [Releases](RELEASING.md) to request, review, and publish a version through a release PR. ## Questions? diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 0000000..d155b98 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,41 @@ +# Releases + +A merged `release/X.Y.Z` PR approves a release. +The release App creates an annotated `vX.Y.Z` tag at the merge commit. +The tag starts the existing publishing workflow. + +## Request a release + +1. Run this command with an authenticated GitHub CLI: + + ```sh + pnpm release patch + ``` + + Use `minor`, `major`, or a stable `X.Y.Z` version instead of `patch` when needed. + The command dispatches `release-pr.yml` on `main`. + +2. Ask another `marimo-eng` member to approve the `release` environment request. +3. Review the version changes and CI results in the generated PR. +4. Merge the PR with its `release/X.Y.Z` branch and `release: X.Y.Z` title intact. +5. Ask another `marimo-eng` member to approve the tagging workflow's environment request. +6. Monitor the tagging and publishing workflows in GitHub Actions. + +Repository writers can request a release. +The protected environment requires a different `marimo-eng` reviewer for each workflow run. +Repository rules control who can merge the PR. +The App key belongs only to the `release` environment, which permits `main` deployments. + +## Retry + +If preparation fails because `main` advanced, dispatch it again. +If the release branch already has different changes, inspect the existing PR before continuing. +The workflow does not overwrite conflicting branches or tags. + +If tagging fails, rerun the failed tagging workflow after correcting the cause. +If publication fails, rerun the failed publisher jobs. +An existing tag at the same commit is safe to reuse. +A published version or tag must never move to another commit. + +The shared [release actions](https://github.com/marimo-team/internal-gh-actions#release-actions) +own PR creation, tag creation, and release identity checks. diff --git a/package.json b/package.json index 131815b..8a4370f 100644 --- a/package.json +++ b/package.json @@ -1,73 +1,76 @@ { - "name": "@marimo-team/codemirror-languageserver", - "publishConfig": { - "access": "public" - }, - "sideEffects": false, - "version": "2.0.1", - "description": "Language Server Plugin for CodeMirror 6", - "files": ["dist"], - "exports": { - "./package.json": "./package.json", - ".": { - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - } - }, - "module": "./dist/index.js", - "types": "./dist/index.d.ts", - "type": "module", - "scripts": { - "prepare": "tsc", - "dev": "vite", - "build": "tsc", - "build:demo": "vite build", - "build:ty-wasm": "bash scripts/build-ty-wasm.sh", - "lint": "biome check --write", - "lint:ci": "biome check", - "typecheck": "tsc --noEmit", - "preview": "vite preview", - "test": "vitest" - }, - "homepage": "https://github.com/marimo-team/codemirror-languageserver", - "bugs": { - "url": "https://github.com/marimo-team/codemirror-languageserver/issues" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/marimo-team/codemirror-languageserver.git" - }, - "license": "BSD-3-Clause", - "packageManager": "pnpm@10.34.5", - "peerDependencies": { - "@codemirror/autocomplete": "^6", - "@codemirror/lint": "^6", - "@codemirror/state": "^6", - "@codemirror/view": "^6" - }, - "devDependencies": { - "@astral-sh/ruff-wasm-web": "0.15.20", - "@biomejs/biome": "1.9.4", - "@codemirror/autocomplete": "6.20.3", - "@codemirror/lang-javascript": "6.2.5", - "@codemirror/lang-python": "6.2.1", - "@codemirror/language": "6.12.4", - "@codemirror/lint": "6.9.7", - "@codemirror/state": "6.7.6", - "@codemirror/view": "6.43.13", - "@lezer/highlight": "1.2.3", - "@typescript/vfs": "1.6.4", - "@vitest/coverage-v8": "4.1.11", - "codemirror": "6.0.2", - "jsdom": "26.1.0", - "typescript": "5.9.3", - "vite": "6.4.3", - "vitest": "4.1.11" - }, - "dependencies": { - "marked": "^15.0.6", - "vscode-languageserver-protocol": "^3.17.5" + "name": "@marimo-team/codemirror-languageserver", + "publishConfig": { + "access": "public" + }, + "sideEffects": false, + "version": "2.0.1", + "description": "Language Server Plugin for CodeMirror 6", + "files": [ + "dist" + ], + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } + }, + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "type": "module", + "scripts": { + "prepare": "tsc", + "dev": "vite", + "build": "tsc", + "build:demo": "vite build", + "build:ty-wasm": "bash scripts/build-ty-wasm.sh", + "lint": "biome check --write", + "lint:ci": "biome check", + "typecheck": "tsc --noEmit", + "preview": "vite preview", + "test": "vitest", + "release": "bash scripts/release.sh" + }, + "homepage": "https://github.com/marimo-team/codemirror-languageserver", + "bugs": { + "url": "https://github.com/marimo-team/codemirror-languageserver/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/marimo-team/codemirror-languageserver.git" + }, + "license": "BSD-3-Clause", + "packageManager": "pnpm@10.34.5", + "peerDependencies": { + "@codemirror/autocomplete": "^6", + "@codemirror/lint": "^6", + "@codemirror/state": "^6", + "@codemirror/view": "^6" + }, + "devDependencies": { + "@astral-sh/ruff-wasm-web": "0.15.20", + "@biomejs/biome": "1.9.4", + "@codemirror/autocomplete": "6.20.3", + "@codemirror/lang-javascript": "6.2.5", + "@codemirror/lang-python": "6.2.1", + "@codemirror/language": "6.12.4", + "@codemirror/lint": "6.9.7", + "@codemirror/state": "6.7.6", + "@codemirror/view": "6.43.13", + "@lezer/highlight": "1.2.3", + "@typescript/vfs": "1.6.4", + "@vitest/coverage-v8": "4.1.11", + "codemirror": "6.0.2", + "jsdom": "26.1.0", + "typescript": "5.9.3", + "vite": "6.4.3", + "vitest": "4.1.11" + }, + "dependencies": { + "marked": "^15.0.6", + "vscode-languageserver-protocol": "^3.17.5" + } } diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..f08be3f --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -euo pipefail +if [[ "$#" != 1 || "$1" == -h || "$1" == --help ]]; then + printf 'Usage: %s \n' "$0" >&2 + exit 2 +fi +if [[ ! "$1" =~ ^(patch|minor|major|(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*))$ ]]; then + printf 'Expected patch, minor, major, or a stable X.Y.Z version.\n' >&2 + exit 2 +fi +exec gh workflow run release-pr.yml --repo marimo-team/codemirror-languageserver --ref main -f "version=$1" From 820be9fc73979ba5d6083bab30d859fe44c42b3d Mon Sep 17 00:00:00 2001 From: Myles Scolnick Date: Wed, 18 Nov 2026 10:30:21 -0800 Subject: [PATCH 2/8] ci: keep release adapters compatible with repository checks --- package.json | 144 +++++++++++++++++++++++++-------------------------- 1 file changed, 71 insertions(+), 73 deletions(-) diff --git a/package.json b/package.json index 8a4370f..b5ecf14 100644 --- a/package.json +++ b/package.json @@ -1,76 +1,74 @@ { - "name": "@marimo-team/codemirror-languageserver", - "publishConfig": { - "access": "public" - }, - "sideEffects": false, - "version": "2.0.1", - "description": "Language Server Plugin for CodeMirror 6", - "files": [ - "dist" - ], - "exports": { - "./package.json": "./package.json", - ".": { - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } + "name": "@marimo-team/codemirror-languageserver", + "publishConfig": { + "access": "public" + }, + "sideEffects": false, + "version": "2.0.1", + "description": "Language Server Plugin for CodeMirror 6", + "files": ["dist"], + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + } + }, + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "type": "module", + "scripts": { + "release": "bash scripts/release.sh", + "prepare": "tsc", + "dev": "vite", + "build": "tsc", + "build:demo": "vite build", + "build:ty-wasm": "bash scripts/build-ty-wasm.sh", + "lint": "biome check --write", + "lint:ci": "biome check", + "typecheck": "tsc --noEmit", + "preview": "vite preview", + "test": "vitest" + }, + "homepage": "https://github.com/marimo-team/codemirror-languageserver", + "bugs": { + "url": "https://github.com/marimo-team/codemirror-languageserver/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/marimo-team/codemirror-languageserver.git" + }, + "license": "BSD-3-Clause", + "packageManager": "pnpm@10.34.5", + "peerDependencies": { + "@codemirror/autocomplete": "^6", + "@codemirror/lint": "^6", + "@codemirror/state": "^6", + "@codemirror/view": "^6" + }, + "devDependencies": { + "@astral-sh/ruff-wasm-web": "0.15.20", + "@biomejs/biome": "1.9.4", + "@codemirror/autocomplete": "6.20.3", + "@codemirror/lang-javascript": "6.2.5", + "@codemirror/lang-python": "6.2.1", + "@codemirror/language": "6.12.4", + "@codemirror/lint": "6.9.7", + "@codemirror/state": "6.7.6", + "@codemirror/view": "6.43.13", + "@lezer/highlight": "1.2.3", + "@typescript/vfs": "1.6.4", + "@vitest/coverage-v8": "4.1.11", + "codemirror": "6.0.2", + "jsdom": "26.1.0", + "typescript": "5.9.3", + "vite": "6.4.3", + "vitest": "4.1.11" + }, + "dependencies": { + "marked": "^15.0.6", + "vscode-languageserver-protocol": "^3.17.5" } - }, - "module": "./dist/index.js", - "types": "./dist/index.d.ts", - "type": "module", - "scripts": { - "prepare": "tsc", - "dev": "vite", - "build": "tsc", - "build:demo": "vite build", - "build:ty-wasm": "bash scripts/build-ty-wasm.sh", - "lint": "biome check --write", - "lint:ci": "biome check", - "typecheck": "tsc --noEmit", - "preview": "vite preview", - "test": "vitest", - "release": "bash scripts/release.sh" - }, - "homepage": "https://github.com/marimo-team/codemirror-languageserver", - "bugs": { - "url": "https://github.com/marimo-team/codemirror-languageserver/issues" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/marimo-team/codemirror-languageserver.git" - }, - "license": "BSD-3-Clause", - "packageManager": "pnpm@10.34.5", - "peerDependencies": { - "@codemirror/autocomplete": "^6", - "@codemirror/lint": "^6", - "@codemirror/state": "^6", - "@codemirror/view": "^6" - }, - "devDependencies": { - "@astral-sh/ruff-wasm-web": "0.15.20", - "@biomejs/biome": "1.9.4", - "@codemirror/autocomplete": "6.20.3", - "@codemirror/lang-javascript": "6.2.5", - "@codemirror/lang-python": "6.2.1", - "@codemirror/language": "6.12.4", - "@codemirror/lint": "6.9.7", - "@codemirror/state": "6.7.6", - "@codemirror/view": "6.43.13", - "@lezer/highlight": "1.2.3", - "@typescript/vfs": "1.6.4", - "@vitest/coverage-v8": "4.1.11", - "codemirror": "6.0.2", - "jsdom": "26.1.0", - "typescript": "5.9.3", - "vite": "6.4.3", - "vitest": "4.1.11" - }, - "dependencies": { - "marked": "^15.0.6", - "vscode-languageserver-protocol": "^3.17.5" - } } From 657ee5541611201517a9541c01e258d9a4e2af6b Mon Sep 17 00:00:00 2001 From: Myles Scolnick Date: Wed, 18 Nov 2026 10:31:48 -0800 Subject: [PATCH 3/8] ci: keep release adapters compatible with repository checks --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5f1429f..5227a68 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,7 +50,7 @@ Types: ## Releases -See [Releases](RELEASING.md) to request, review, and publish a version through a release PR. +See [Releases](RELEASING.md) for the release PR workflow. ## Questions? From 535c3f8c8a4092f1eb2d2e0b56a729a2ce2994ed Mon Sep 17 00:00:00 2001 From: Myles Scolnick Date: Wed, 18 Nov 2026 11:08:16 -0800 Subject: [PATCH 4/8] docs: link shared release operations to internal runbook --- RELEASING.md | 44 +++++++------------------------------------- 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index d155b98..1547236 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,41 +1,11 @@ # Releases -A merged `release/X.Y.Z` PR approves a release. -The release App creates an annotated `vX.Y.Z` tag at the merge commit. -The tag starts the existing publishing workflow. +Maintainers request a release with an authenticated GitHub CLI: -## Request a release +```sh +pnpm release patch +``` -1. Run this command with an authenticated GitHub CLI: - - ```sh - pnpm release patch - ``` - - Use `minor`, `major`, or a stable `X.Y.Z` version instead of `patch` when needed. - The command dispatches `release-pr.yml` on `main`. - -2. Ask another `marimo-eng` member to approve the `release` environment request. -3. Review the version changes and CI results in the generated PR. -4. Merge the PR with its `release/X.Y.Z` branch and `release: X.Y.Z` title intact. -5. Ask another `marimo-eng` member to approve the tagging workflow's environment request. -6. Monitor the tagging and publishing workflows in GitHub Actions. - -Repository writers can request a release. -The protected environment requires a different `marimo-eng` reviewer for each workflow run. -Repository rules control who can merge the PR. -The App key belongs only to the `release` environment, which permits `main` deployments. - -## Retry - -If preparation fails because `main` advanced, dispatch it again. -If the release branch already has different changes, inspect the existing PR before continuing. -The workflow does not overwrite conflicting branches or tags. - -If tagging fails, rerun the failed tagging workflow after correcting the cause. -If publication fails, rerun the failed publisher jobs. -An existing tag at the same commit is safe to reuse. -A published version or tag must never move to another commit. - -The shared [release actions](https://github.com/marimo-team/internal-gh-actions#release-actions) -own PR creation, tag creation, and release identity checks. +Accepts `patch`, `minor`, `major`, or a stable `X.Y.Z` version. +Review and merge the generated PR to approve publication. +See the [maintainer runbook](https://github.com/marimo-team/github-maintenance/blob/main/docs/releases.md) (internal). From d5c2ae815175d172da05ebd9528ef936e1def943 Mon Sep 17 00:00:00 2001 From: Myles Scolnick Date: Wed, 18 Nov 2026 11:33:57 -0800 Subject: [PATCH 5/8] ci: validate release contracts behind a shared gate --- .github/workflows/release-checks.yml | 25 +++++++++++++++++++++++++ .github/workflows/release-pr.yml | 16 +++++++--------- .release.json | 28 ++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/release-checks.yml create mode 100644 .release.json diff --git a/.github/workflows/release-checks.yml b/.github/workflows/release-checks.yml new file mode 100644 index 0000000..3314afa --- /dev/null +++ b/.github/workflows/release-checks.yml @@ -0,0 +1,25 @@ +name: Release checks +on: + pull_request: + branches: [main] + push: + branches: [main] +permissions: + contents: read + actions: read +concurrency: + group: release-checks-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} +jobs: + release-checks: + name: Release checks + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + persist-credentials: false + - uses: marimo-team/internal-gh-actions/release-contract@SHARED_SHA + with: + workflows: | + test.yml diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 8d5e276..27733f3 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -28,21 +28,19 @@ jobs: node-version: 24 - name: Prepare versions id: version - env: - REQUESTED_VERSION: ${{ inputs.version }} - run: | - npm version "$REQUESTED_VERSION" --no-git-tag-version --ignore-scripts --package-lock=false - echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT" + uses: marimo-team/internal-gh-actions/prepare-release@SHARED_SHA + with: + version: ${{ inputs.version }} - name: Open release PR id: pr - uses: marimo-team/internal-gh-actions/release-pr@3a52681ab8e200a34175ec8e5d14985e4e7ce3c3 + uses: marimo-team/internal-gh-actions/release-pr@SHARED_SHA with: app-id: ${{ vars.RELEASE_APP_ID }} private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} - manifest: package.json + current-version: ${{ steps.version.outputs.current-version }} + manifest: ${{ steps.version.outputs.manifest }} version: ${{ steps.version.outputs.version }} - files: | - package.json + files: ${{ steps.version.outputs.files }} - name: Link release PR env: PR_URL: ${{ steps.pr.outputs.url }} diff --git a/.release.json b/.release.json new file mode 100644 index 0000000..34fe208 --- /dev/null +++ b/.release.json @@ -0,0 +1,28 @@ +{ + "repository": "marimo-team/codemirror-languageserver", + "files": [ + "package.json" + ], + "command": [ + "pnpm", + "release" + ], + "docs": "RELEASING.md", + "checks": [ + [ + "pnpm", + "install", + "--lockfile-only", + "--frozen-lockfile", + "--ignore-scripts" + ] + ], + "manifest": "package.json", + "prepare": [ + "npm", + "version", + "--no-git-tag-version", + "--ignore-scripts", + "--package-lock=false" + ] +} From 27f72b77554a379824539b1e3130fac4520bb7c4 Mon Sep 17 00:00:00 2001 From: Myles Scolnick Date: Wed, 18 Nov 2026 11:38:21 -0800 Subject: [PATCH 6/8] ci: pin shared release contract actions --- .github/workflows/release-checks.yml | 2 +- .github/workflows/release-pr.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-checks.yml b/.github/workflows/release-checks.yml index 3314afa..88e7c45 100644 --- a/.github/workflows/release-checks.yml +++ b/.github/workflows/release-checks.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: persist-credentials: false - - uses: marimo-team/internal-gh-actions/release-contract@SHARED_SHA + - uses: marimo-team/internal-gh-actions/release-contract@36a2bd9a76109b91c9dc0bc65bfab95c9b632a3b with: workflows: | test.yml diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 27733f3..f0ddfbd 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -28,12 +28,12 @@ jobs: node-version: 24 - name: Prepare versions id: version - uses: marimo-team/internal-gh-actions/prepare-release@SHARED_SHA + uses: marimo-team/internal-gh-actions/prepare-release@36a2bd9a76109b91c9dc0bc65bfab95c9b632a3b with: version: ${{ inputs.version }} - name: Open release PR id: pr - uses: marimo-team/internal-gh-actions/release-pr@SHARED_SHA + uses: marimo-team/internal-gh-actions/release-pr@36a2bd9a76109b91c9dc0bc65bfab95c9b632a3b with: app-id: ${{ vars.RELEASE_APP_ID }} private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} From a5607beb8609de68a870b09a71ef4e9e6441e502 Mon Sep 17 00:00:00 2001 From: Myles Scolnick Date: Wed, 18 Nov 2026 11:44:16 -0800 Subject: [PATCH 7/8] ci: use the configured runner for release workflows --- .github/workflows/release-checks.yml | 2 +- .github/workflows/release-pr.yml | 2 +- .github/workflows/release-tag.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-checks.yml b/.github/workflows/release-checks.yml index 88e7c45..8b174d2 100644 --- a/.github/workflows/release-checks.yml +++ b/.github/workflows/release-checks.yml @@ -13,7 +13,7 @@ concurrency: jobs: release-checks: name: Release checks - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_RUNNER_SMALL || 'ubuntu-latest' }} timeout-minutes: 60 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index f0ddfbd..e635ba0 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -13,7 +13,7 @@ concurrency: jobs: prepare: if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_RUNNER_SMALL || 'ubuntu-latest' }} environment: release timeout-minutes: 15 permissions: diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 6cdb9e0..c7c09b5 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -11,7 +11,7 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.event.pull_request.head.ref, 'release/') && startsWith(github.event.pull_request.title, 'release: ') - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_RUNNER_SMALL || 'ubuntu-latest' }} environment: release timeout-minutes: 60 concurrency: From fe4933af603b6a888faee53e02300ac8f4c821d8 Mon Sep 17 00:00:00 2001 From: Myles Scolnick Date: Wed, 18 Nov 2026 11:46:39 -0800 Subject: [PATCH 8/8] style: format release contract configuration --- .release.json | 45 ++++++++++++++++++++------------------------- 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/.release.json b/.release.json index 34fe208..7cc9204 100644 --- a/.release.json +++ b/.release.json @@ -1,28 +1,23 @@ { - "repository": "marimo-team/codemirror-languageserver", - "files": [ - "package.json" - ], - "command": [ - "pnpm", - "release" - ], - "docs": "RELEASING.md", - "checks": [ - [ - "pnpm", - "install", - "--lockfile-only", - "--frozen-lockfile", - "--ignore-scripts" + "repository": "marimo-team/codemirror-languageserver", + "files": ["package.json"], + "command": ["pnpm", "release"], + "docs": "RELEASING.md", + "checks": [ + [ + "pnpm", + "install", + "--lockfile-only", + "--frozen-lockfile", + "--ignore-scripts" + ] + ], + "manifest": "package.json", + "prepare": [ + "npm", + "version", + "--no-git-tag-version", + "--ignore-scripts", + "--package-lock=false" ] - ], - "manifest": "package.json", - "prepare": [ - "npm", - "version", - "--no-git-tag-version", - "--ignore-scripts", - "--package-lock=false" - ] }