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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ jobs:
node-version-file: .node-version
registry-url: https://npm.pkg.github.com
scope: '@commercekit-tools'
- run: npm install --global corepack@0.36.0
- run: corepack enable
- run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm quality
- name: Use the Node 24 Action execution baseline
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
with:
node-version: '24.21.0'
- name: Verify packaged Action compatibility on Node 24
run: pnpm exec vitest run tests/bundle.test.ts
1 change: 1 addition & 0 deletions .github/workflows/marketplace-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
node-version-file: .node-version
registry-url: https://npm.pkg.github.com
scope: '@commercekit-tools'
- run: npm install --global corepack@0.36.0
- run: corepack enable
- run: pnpm install --frozen-lockfile
env:
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24.21.0
26.13.1
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The reporting implementation consumes exact published notification-contract
file:tarball dependency is required. Historical candidate provenance is archived
in [ecosystem-reporting-validation.md](docs/ecosystem-reporting-validation.md).

Use Node.js `24.21.0` and pnpm `12.6.0`. Configure GitHub Packages authentication as described below, enable Corepack, then run `pnpm install --frozen-lockfile`.
Use Node.js `26.13.1` and pnpm `12.6.0` for development. Configure GitHub Packages authentication as described below, install Corepack with `npm install --global corepack@0.36.0`, enable it, then run `pnpm install --frozen-lockfile`.

Run `pnpm format`, `pnpm lint`, `pnpm typecheck`, `pnpm schema:check`, `pnpm test`, `pnpm test:coverage`, `pnpm audit`, and `pnpm bundle`. Review contract changes and provider payload fixtures carefully. Regenerate and commit all `dist` artifacts with source changes. Use only synthetic fixtures; normal CI must never call real webhooks. PRs should explain contract/security effects and include focused tests.

Expand Down Expand Up @@ -34,3 +34,5 @@ common Result/Inputs/Issues layout; review semantic counts, links and outcomes
independently of those golden changes. Provider escaping remains local; the shared action-text sanitizer adds common
JWT, known-secret and URL disclosure rules. Do not duplicate the shared visual
status vocabulary or event schema.

Development and bundle verification use Node 26. The Action still executes with `runs.using: node24`; keep its runtime APIs compatible with Node 24. The existing packaged-Action tests also run on Node 24 in CI without doubling the full quality matrix.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"type": "module",
"engines": {
"node": ">=24.0.0 <25.0.0"
"node": ">=24.0.0 <25.0.0 || >=26.13.1 <27.0.0"
},
"packageManager": "pnpm@12.6.0",
"scripts": {
Expand Down
13 changes: 13 additions & 0 deletions tests/release-readiness.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ import { describe, expect, it } from 'vitest';
const read = (path: string) => readFile(new URL(`../${path}`, import.meta.url), 'utf8');

describe('release readiness contracts', () => {
it('uses Node 26 development tooling and verifies the Node 24 packaged Action', async () => {
const pin = (await read('.node-version')).trim();
expect(pin).toMatch(/^26\.\d+\.\d+$/);
const manifest = JSON.parse(await read('package.json'));
expect(manifest.engines.node).toContain(`>=${pin}`);
expect(manifest.engines.node).toContain('>=24.0.0 <25.0.0');
const ci = await read('.github/workflows/ci.yml');
expect(ci).toContain('node-version-file: .node-version');
expect(ci).toContain('npm install --global corepack@0.36.0');
expect(ci.indexOf('npm install --global corepack@0.36.0')).toBeLessThan(ci.indexOf('corepack enable'));
expect(ci).toContain("node-version: '24.21.0'");
expect(ci).toContain('pnpm exec vitest run tests/bundle.test.ts');
});
it('keeps one root Node 24 Action with the bounded public contract', async () => {
const action = await read('action.yml');
expect(action).toMatch(/^name: CommerceKit Notifications$/m);
Expand Down