pptx-react-renderer publishes from GitHub Actions when pull requests merge into main.
The publish workflow is:
- A pull request targets
main. - The pull request carries exactly one release label:
release:patchrelease:minorrelease:majorrelease:skip
- The PR must pass
verifyandrelease-intent. - On merge to
main,.github/workflows/publish.yml:- resolves the current published npm version
- computes the next release version
- publishes to npm through trusted publishing
- pushes a matching Git tag
- creates a GitHub release
Until 1.0.0, the release labels are intentionally softened:
release:patch=> patch bumprelease:minor=> patch bumprelease:major=> minor bumprelease:skip=> no publish
Examples from a current version of 0.1.1:
release:patch=>0.1.2release:minor=>0.1.2release:major=>0.2.0
Once the package reaches 1.0.0, the workflow uses normal semver behavior.
Trusted publishing is configured on npm for:
- package:
pptx-react-renderer - repository:
OpenRenderKit/pptx-react-renderer - workflow file:
publish.yml
This means the steady-state release path does not require an NPM_TOKEN GitHub secret.
- Check the
publishworkflow logs in GitHub Actions. - Confirm the merged PR has exactly one release label.
- Confirm npm still shows the trusted publisher:
npx npm@latest trust list pptx-react-renderer --json- Confirm the package exists and the latest version is what the workflow expects:
npm view pptx-react-renderer version dist-tags --json- Only if trusted publishing is broken and a release is urgent, use a short-lived fallback token path and remove it afterward.
- npm:
0.1.1 - GitHub release:
v0.1.1