SPFx 1.22 CI/CD — Upgrade pipeline to npm + Heft
Update your GitHub Actions pipeline to use npm scripts that invoke Heft so prebuild hooks run reliably before packaging.
6 posts
Update your GitHub Actions pipeline to use npm scripts that invoke Heft so prebuild hooks run reliably before packaging.
Copilot-guided migration from SPFx 1.21 (gulp) to 1.22 (Heft): detect customizations, verify Node, update toolchain, and audit permissions.
Set up Husky + lint-staged with Heft-based SPFx 1.22 to enforce formatting, linting, and basic checks before code lands.
Heft task to lint SCSS/CSS with Stylelint; optionally auto-fix via --fix and run before builds.
Same approach as the original post, plus a quick demo of responsive, resized images using Astro assets.
Use Heft to keep the SharePoint package solution version in sync with package.json in SPFx 1.22.