Skip to content

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:

  1. GitHub checks out full history.
  2. CI installs the pinned pnpm and Node versions.
  3. Dependencies are installed from the frozen lockfile.
  4. VitePress builds docs/.vitepress/dist.
  5. The build directory is uploaded as a Pages artifact.
  6. The deploy job publishes that artifact to the github-pages environment.

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: read
  • pages: write
  • id-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.yaml was not updated with package.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:

  1. Set the version in package.json and in .claude-plugin/plugin.json, both its version and the requireganizer@<version> its server runs, and commit them to main. The tests fail while they differ.

  2. Tag that commit with a signed tag named after the version, then push the tag:

    bash
    git 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 check passes 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.

Released under the MIT License.