Deployment and releases
Documentation
Documentation is published by .github/workflows/docs.yml.
Pipeline
On a push to main that changes documentation, the lockfile, package metadata, or the workflow:
- GitHub checks out full history.
- CI installs the pinned pnpm and Node versions.
- Dependencies are installed from the frozen lockfile.
- VitePress builds
docs/.vitepress/dist. - The build directory is uploaded as a Pages artifact.
- The deploy job publishes that artifact to the
github-pagesenvironment.
The workflow also supports manual dispatch. Deployment concurrency does not cancel an in-progress publish, preventing a partially replaced Pages release.
Repository setup
In Settings → Pages, set the build and deployment source to GitHub Actions. The workflow requires these permissions, declared at workflow level:
contents: readpages: writeid-token: write
The expected site URL is https://sassanh.github.io/requireganizer/.
Pull-request validation
The quality workflow builds the docs through pnpm run check, but it does not publish from pull requests. Only the dedicated Pages workflow deploys, and only from main or a manual run.
Troubleshooting
- A blank or asset-less page usually indicates an incorrect VitePress
base. - A missing package during CI usually means
pnpm-lock.yamlwas not updated withpackage.json. - A deployment permission error usually means Pages is not configured for GitHub Actions or the workflow permissions were changed.
- Broken internal links fail
pnpm run docs:build; fix them before deployment.
The application
pnpm run build writes the page build to out/, and pnpm run cf:deploy publishes out/ as Cloudflare static assets, configured in wrangler.jsonc. Another static host works if it serves project.html for /project and 404.html for unknown paths.
The npm package
.github/workflows/release.yml publishes dist/ to npm as requireganizer. The repository is also the Claude Code plugin and its marketplace, in .claude-plugin/; the plugin runs the server of its own version with npx. To release:
Set the version in
package.jsonand in.claude-plugin/plugin.json, both itsversionand therequireganizer@<version>its server runs, and commit them tomain. The tests fail while they differ.Tag that commit with a signed tag named after the version, then push the tag:
bashgit tag -s v0.1.0 -m v0.1.0 git push origin v0.1.0
The workflow publishes nothing unless:
- GitHub shows the tag as Verified: signed, under its name, with a signing key added to a GitHub account;
- the tagged commit is on
main; - the tag names the version in
package.json; pnpm run checkpasses on the tagged commit.
npm publishes with provenance. Once npm has the version, the workflow creates the tag's GitHub release, with notes GitHub generates from the changes since the previous release.
npm setup
The workflow publishes as the package's trusted publisher on npmjs.com, with no token: GitHub Actions, user sassanh, repository requireganizer, workflow release.yml, environment release-npm, with npm publish allowed. Renaming the workflow file or the environment needs the same change there.