Skip to content

feat(ci): migrate to centralized reusable workflows#37

Merged
jimisola merged 3 commits into
mainfrom
feat/use-centralized-workflows
May 5, 2026
Merged

feat(ci): migrate to centralized reusable workflows#37
jimisola merged 3 commits into
mainfrom
feat/use-centralized-workflows

Conversation

@jimisola
Copy link
Copy Markdown
Member

@jimisola jimisola commented May 4, 2026

Summary

Migrates all CI/CD workflows to thin callers of the org-wide reusable workflows in reqstool/.github (PR reqstool/.github#29).

Replaced with centralized callers:

  • build.ymltypescript/lint.yml@main + typescript/build.yml@main (use-xvfb: true, reqstool install via dependency-version/dependency-install-command)
  • release.ymlcommon/release.yml@main (version-format: semver)
  • publish_vscode_ext.ymlcommon/check-release.yml@main + typescript/publish-to-vscode.yml@main; trigger changed from release: [created]release: [published] (draft-gate pattern)

New:

  • release-preview.ymlworkflow_dispatch caller to common/release-preview.yml@main; shows next version, draft notes, and the current npm package version for cross-check

Deleted:

  • lint.yml — superseded by typescript/lint.yml@main
  • check_release.yml — publish workflow now calls centralized directly

Dependency

Requires reqstool/.github#29 to be merged before this PR's workflows will resolve.

Test plan

  • Push to mainbuild.yml (lint + build with xvfb) and publish_vscode_ext.yml dry-run both trigger
  • Trigger release-preview.yml via workflow_dispatch — confirm job summary renders with version table and draft notes
  • Trigger release.yml via workflow_dispatch with a test version — confirm draft release is created (then delete it)

Comment thread .github/workflows/build.yml Fixed
jimisola added 2 commits May 5, 2026 09:26
Replaces all local CI/CD workflow definitions with thin callers to the
org-wide reusable workflows in reqstool/.github.

Changes:
- build.yml: delegates lint to typescript/lint.yml@main and build
  (xvfb + reqstool install) to typescript/build.yml@main
- release.yml: delegates to common/release.yml@main (semver format)
- publish_vscode_ext.yml: delegates check-release, dry-run, and
  publish to centralized common/check-release and
  typescript/publish-to-vscode workflows; trigger changed from
  release: [created] to release: [published] (draft-gate pattern)
- release-preview.yml: new workflow_dispatch caller to
  common/release-preview.yml@main

Removed:
- lint.yml: superseded by typescript/lint.yml@main
- check_release.yml: publish workflow now calls centralized directly

Closes reqstool/reqstool.github.io#33 (reqstool-vscode migration)

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
- Add prettier + eslint-config-prettier as dev dependencies
- Add format and format:fix npm scripts
- Add .prettierignore (excludes out/, node_modules/, *.vsix)
- Wire eslint-config-prettier into eslint.config.mjs to prevent
  ESLint/Prettier rule conflicts
- Format all existing source files with Prettier defaults

CI now runs npm run format via typescript/lint.yml@main.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola jimisola force-pushed the feat/use-centralized-workflows branch from cd476b0 to 9ff53e8 Compare May 5, 2026 07:28
…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola jimisola merged commit a266d0d into main May 5, 2026
5 checks passed
@jimisola jimisola deleted the feat/use-centralized-workflows branch May 5, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants