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
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,26 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Enable Corepack
run: corepack enable

- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache: pnpm

- name: Activate 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
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,36 @@ jobs:
git config --local gpg.format ssh
git config --local gpg.ssh.allowedSignersFile "${allowed_signers}"

- name: Enable Corepack
run: corepack enable

- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: 24.18.0
registry-url: https://registry.npmjs.org
package-manager-cache: false

- name: Activate pnpm
run: corepack enable

- name: Use the reviewed npm release
run: npm install --global npm@11.18.0

- 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

- name: Upload the prepared release
id: upload
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Read [AGENTS.md](AGENTS.md) before changing the package. Pull requests must
pass the complete gate on Node.js 22 and 24:

```sh
npm ci
npm run format:check
npm run check
npm test
pnpm install
pnpm run format:check
pnpm run check
pnpm test
```

The tests start Azurite and run the same contract over the memory and Azure
Expand Down
18 changes: 10 additions & 8 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ move or recreate the tag, unpublish and reuse the version, or claim that
The release tool verifies that:

- the private root and sole public workspace use one stable version;
- the root pins `npm@11.18.0` and the lockfile matches both manifests;
- the root pins `pnpm@10.34.5` and `pnpm-lock.yaml` lists both manifests;
- pack and trusted publish still use reviewed `npm@11.18.0`;
- `@pegma/sessions` is public MIT-licensed ESM for Node 22 or newer;
- runtime dependencies are pinned exactly;
- repository metadata points to `pegma-dev/sessions`;
Expand Down Expand Up @@ -110,13 +111,14 @@ reviewed release notes. Run the complete gate and a local release pack on
Node 22 and 24:

```sh
corepack enable
npm install --global npm@11.18.0
npm ci
npm run format:check
npm run check
npm test
npm run release:check
npm run release:pack -- -- --output .release
pnpm install
pnpm run format:check
pnpm run check
pnpm test
pnpm run release:check
pnpm run release:pack -- -- --output .release
```

After merge, create and verify the tag before creating the GitHub release.
Expand Down Expand Up @@ -145,7 +147,7 @@ The globally serialized preparation job:

1. checks out the fully qualified release tag and fetches `origin/main`;
2. configures the reviewed allowed-signers file;
3. uses Node 24.18.0 and npm 11.18.0;
3. uses Node 24.18.0, pnpm 10.34.5, and npm 11.18.0 for pack and publish;
4. runs the full gate without OIDC publication authority;
5. prepares, smoke-tests, and hashes the exact tarball; and
6. uploads `.release` for 30 days with an Actions transport digest.
Expand Down
Loading