This guide documents how to perform a PptxGenJS release. Maintainers should follow this checklist before pushing to npm or GitHub.
- Update
package.jsonversion (ex:4.1.0-beta.0) - Update
src/pptxgen.tsversion - Build library: npm scripts >
ship npm publish --tag beta
- Update
package.jsonversion - Update
src/pptxgen.tsversion (eg:const VERSION = '4.0.1') - Update
CHANGELOG.mdwith new date - Build library: npm scripts >
ship - Consolidate new changes from
src/bld/*.tsintotypes/index.d.tsand update version in head comment - Open
dist/*.jsand check headers - Update version in:
demos/node/package.json - Update pptxgenjs dep version in:
demos/vite-demo/package.json
See TESTING.md for complete test instructions.
| Dist File | Test | Tested Via | Result |
|---|---|---|---|
| pptxgen.es.js | Webpack 4 | SPFx (v1.16.1) project | ✅?🟡 |
| pptxgen.es.js | Webpack 5 | SPFx (v1.19.1) project | ✅?🟡 |
| pptxgen.es.js | Rollup 4 | Vite (v6) demo | ✅?🟡 |
| pptxgen.cjs.js | Node/CJS | Node demo | ✅?🟡 |
| pptxgen.bundle.js | Script | Browser demo (desktop) | ✅?🟡 |
| pptxgen.bundle.js | Script | Browser demo (iOS) | ✅?🟡 |
| pptxgen.bundle.js | Web Worker | worker_test demo | ✅?🟡 |
- Update:
demos/browser/index.htmlhead to use "RELEASE (CDN)" - Check: Is
versionupdated in package.json? - Check: Is
versionupdated in src/pptxgen.ts? - Check: Is
types/index.d.tsversion in header updated?
- Checkin all changes via GitHub Desktop
- Merge working branch into
main - Copy CHANGELOG entry and draft new release: Releases
- Use "Version x.x.x" as title and "vX.X.X" as tag
- Go back to Releases page, double-check title/tag, release when ready
cd ~/GitHub/PptxGenJS
npm publish- Test CDN links on README.md
- Load gh-pages branch
- Update
installation.mdwith latest CDN version - Copy contents of the newest "build" folder (from above) into
./demo-reactfolder - Update API documentation if needed