Skip to content

Conversation

@hillna
Copy link
Contributor

@hillna hillna commented Jan 13, 2026

Summary

  • Upgrade from Yarn 1.x to Yarn 4.x with corepack
  • Switch from npm publish to yarn npm publish for trusted publishing support
  • Upgrade ESLint toolchain for Node.js 22 compatibility:
    • ESLint 7.32.0 → 8.57.0
    • @typescript-eslint 4.x → 5.62.0
    • eslint-plugin-jest 24.x → 27.9.0
    • prettier 2.x → 3.5.1
  • Fix clean script glob pattern for zsh compatibility
  • Fix test precision: truncate float literals that exceed IEEE 754 float64 representable precision (the original values were silently rounded at runtime, so no behavioral change)

Test plan

  • CI passes with build, lint, and tests

- Add OIDC permissions (id-token: write, contents: read) for trusted publishing
- Replace NODE_AUTH_TOKEN with npx npm@latest publish --provenance
@linear
Copy link

linear bot commented Jan 13, 2026

@hillna hillna force-pushed the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch from af9d27e to 30d6a3d Compare January 14, 2026 16:25
- Upgrade to Yarn 4.12.0 for OIDC support (PR yarnpkg/berry#6898)
- Replace npx npm@latest publish --provenance with yarn npm publish
- Provenance is automatic with OIDC trusted publishing
- Add packageManager field where missing
@hillna hillna force-pushed the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch from 30d6a3d to 945f087 Compare January 14, 2026 17:12
@hillna hillna self-assigned this Jan 14, 2026
@hillna hillna marked this pull request as ready for review January 14, 2026 18:46
@hillna hillna requested a review from jtbandes January 26, 2026 16:40
@hillna hillna marked this pull request as draft January 26, 2026 21:04
- Add packageManager field (yarn@4.9.1)
- Add .yarnrc.yml with nodeLinker: node-modules
- Update CI: corepack enable, --immutable, yarn npm publish
- Update Node.js to 22.x
- Update TypeScript to 5.7.3, Jest to 29.7.0
- Update test snapshot for Jest 29 format
- Upgrade ESLint from 7.32.0 to 8.57.0 (fixes ESM compatibility with Node 22)
- Upgrade @typescript-eslint packages from 4.x to 5.62.0
- Upgrade eslint-plugin-jest from 24.x to 27.9.0
- Upgrade prettier from 2.x to 3.5.1
- Fix clean script glob pattern for zsh compatibility
- Fix test precision: truncate float literals that exceed IEEE 754 float64
  representable precision (the original values were silently rounded at
  runtime anyway, so no behavioral change)
Use single quotes to pass the glob pattern to rimraf instead of
letting zsh expand it (which fails when no files match).
@hillna hillna marked this pull request as ready for review January 28, 2026 21:44
@hillna hillna merged commit e8fdd35 into main Jan 29, 2026
1 check passed
@hillna hillna deleted the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch January 29, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants