Skip to content

ci: update Node.js, pnpm and workflows - #1355

Merged
dangreen merged 7 commits into
masterfrom
ci/toolchain
Nov 30, 2026
Merged

dangreen merged 7 commits into
masterfrom
ci/toolchain

Conversation

@dangreen

@dangreen dangreen commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Part 2 of the tooling stack. Based on master (#1354 is merged).

What

  • Toolchain. Node.js 26.10 and pnpm 12.6 in .tool-versions. pnpm 12 reads build script approvals from allowBuilds, so the three pnpm-workspace.yaml files move to it.
  • Workflows, aligned with the Trigen baseline (Argue, nano_kit):
    • every job takes Node.js from .tool-versions and uses pnpm 12;
    • every action is pinned to the commit of its latest release, with the tag in a comment; renovate's helpers:pinGitHubActionDigests keeps the pins current;
    • the token of a run only reads, unless a job needs more;
    • ci.yml becomes tests.yml with separate types, lint and unit jobs (badges updated);
    • checks.yml gets a package.json lint job (@trigen/lint-package-json) and runs size-limit directly instead of andresz1/size-limit-action@master;
    • commit.yml runs commitlint from the repository instead of a third-party action;
    • release.yml gets a manual trigger with version inputs, per-job permissions and id-token: write.
  • size-limit: the big-lib preset ran the bundle in headless Chrome and fails on current Node.js. The small-lib preset measures the whole package and single components (Chart, Line); limits are pinned on a 50 B step.
  • package.json passes lint-package-json: description ends with a period, homepage is the documentation website.
  • Funding: funding in package.json (shown by npm fund) and .github/FUNDING.yml (the Sponsor button) point to Ko-fi, as in the other Trigen repositories.
  • Issue templates: questions go to the Q&A category of GitHub Discussions instead of Stack Overflow (the tag gets no new questions since 2025); the bug report points to the StackBlitz sandbox instead of CodeSandbox.

Before merging

  • Enable GitHub Discussions in the repository settings and keep the default Q&A category: the question link of the issue chooser points to /discussions/categories/q-a, which is a 404 while Discussions are off.
  • The release job still passes NPM_TOKEN. To switch to npm trusted publishing, add reactchartjs/react-chartjs-2 + release.yml as a trusted publisher of react-chartjs-2 on npmjs.com, then the token can be dropped.

Checked locally

pnpm install --frozen-lockfile, pnpm test, pnpm build, pnpm test:typings, pnpm test:size, pnpm build:storybook, the website build, lint-package-json and editorconfig-checker, all on Node.js 26.10 and pnpm 12.6.

Stack

  1. chore: agent skills and notes (chore: add agent skills lock and agent notes #1354)
  2. ci: Node.js 26, pnpm 12 and workflows ← this PR
  3. build: Vite and Vitest (build: build and test with Vite #1356)
  4. chore: Storybook 10 (chore: update Storybook to 10 #1357)
  5. chore: sandboxes in the root workspace (chore: install the sandboxes from the root workspace #1358)
  6. chore: lint with oxlint (chore: lint with oxlint #1359)
  7. chore(deps): update dependencies (chore(deps): update dependencies #1360)
  8. docs: move the website to Starlight (docs: move the website to Starlight #1361)
  9. build!: drop the CommonJS build (build!: drop the CommonJS build #1362)

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.00%. Comparing base (859802f) to head (b9fe2e6).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1355   +/-   ##
=======================================
  Coverage   90.00%   90.00%           
=======================================
  Files           3        3           
  Lines          80       80           
  Branches       20       20           
=======================================
  Hits           72       72           
  Misses          6        6           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

pnpm 12 reads build script approvals from allowBuilds instead of onlyBuiltDependencies.
Every job takes Node.js from .tool-versions and pnpm 12, actions are pinned to release commits, which renovate keeps current, and the token of a run only reads unless a job needs more. Tests run as separate types, lint and unit jobs; checks add package.json linting; commitlint runs from the repository; the release job is ready for npm trusted publishing.
The big-lib preset runs the bundle in headless Chrome, which no longer works; the small-lib preset measures what a consumer ships, for the whole package and for single components, with limits pinned on a 50 B step.
The description ends with a period and the homepage, now the documentation website, follows the license.
The react-chartjs-2 tag on Stack Overflow gets no new questions since 2025. The bug report now points to the StackBlitz sandbox.
npm fund and the Sponsor button of the repository point to Ko-fi, as in the other repositories of the maintainer.
Questions go to the Q&A category of Discussions instead of issues, so they stay apart from bug reports and an answer can be marked.
@dangreen
dangreen marked this pull request as ready for review November 30, 2026 15:15
@dangreen
dangreen merged commit c1249b8 into master Nov 30, 2026
11 checks passed
@dangreen
dangreen deleted the ci/toolchain branch November 30, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant