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
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,18 @@ jobs:
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Enable pnpm
run: corepack enable

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Check formatting
run: npm run format:check
run: pnpm run format:check

- name: Check types
run: npm run check
run: pnpm run check

- name: Run tests
run: npm test
run: pnpm test
17 changes: 10 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ jobs:
registry-url: https://registry.npmjs.org
package-manager-cache: false

- name: Enable pnpm
run: corepack enable

# Installed from a tarball checked against a committed hash, so the
# bootstrap is pinned by bytes rather than by registry metadata. Every
# other install in this job is already covered by package-lock.json.
# other install in this job is already covered by pnpm-lock.yaml.
- name: Use the reviewed npm release
shell: bash
env:
Expand All @@ -75,19 +78,19 @@ jobs:
fi

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Check formatting
run: npm run format:check
run: pnpm run format:check

- name: Check types
run: npm run check
run: pnpm run check

- name: Run tests
run: npm test
run: pnpm test

- name: Prepare and verify the release tarball
run: npm run release:pack -- -- --require-clean --require-main-ancestor --require-release-tag --expected-release-commit "${RELEASE_COMMIT}" --output .release
run: pnpm run release:pack -- -- --require-clean --require-main-ancestor --require-release-tag --expected-release-commit "${RELEASE_COMMIT}" --output .release
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved

- name: Upload the prepared release
id: upload
Expand Down Expand Up @@ -135,4 +138,4 @@ jobs:
path: .release

- name: Publish the verified prepared tarball
run: npm run release:publish -- -- --expected-release-commit "${RELEASE_COMMIT}" --manifest .release/package-manifest.json
run: node scripts/release-packages.mjs publish --expected-release-commit "${RELEASE_COMMIT}" --manifest .release/package-manifest.json
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exclude `src/**/*.test.ts`, or compiled tests are published to consumers.
## Workflow

Work on a `claude/*` branch and open a pull request. The gate is
`npm run format:check`, `npm run check`, `npm test` — all three, on Node 22 and 24.
`pnpm run format:check`, `pnpm run check`, `pnpm test` — all three, on Node 22 and 24.

Publishing is trusted-publisher only; no tokens exist. A release starts from a
protected signed annotated `vX.Y.Z` tag already on `origin/main`, followed by
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,14 @@ requirements should shape the contract rather than a guess made in advance.

## Development

Spine requires Node.js 22 or newer.
Spine is developed on Node.js 22 or 24.

```sh
npm ci
npm run check
npm test
npm run format:check
corepack enable
pnpm install --frozen-lockfile
pnpm run check
pnpm test
pnpm run format:check
```

Maintainers should follow [the release runbook](docs/RELEASING.md). Releases
Expand Down
10 changes: 6 additions & 4 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ The release workflow verifies that the tag:
- points to the checkout and the GitHub release-event commit; and
- is contained in `origin/main`.

Its preparation job has no OIDC permission. It installs the reviewed npm
version without dependency caching, runs the full gate, builds and packs once,
Its preparation job has no OIDC permission. It enables the `packageManager`-pinned
pnpm via Corepack without dependency caching, installs the reviewed npm release
from a digest-checked tarball, runs the full gate, builds and packs once,
smoke-tests the tarball from a clean consumer, records its SHA-1 and SHA-512
integrity, and uploads the exact prepared artifact.

Only the `npm-publish` job receives `id-token: write`. It installs no
dependencies, verifies the prepared manifest and tarball hashes against the
release commit, and publishes that tarball with npm provenance.
dependencies and does not download pnpm. It verifies the prepared manifest and
tarball hashes against the release commit, and publishes that tarball with npm
provenance.

## Safe retry

Expand Down
Loading