ci: add GAR publish workflow on templ-for-bwa and remove manual publish script#2
Open
braines-blw wants to merge 1 commit into
Open
ci: add GAR publish workflow on templ-for-bwa and remove manual publish script#2braines-blw wants to merge 1 commit into
braines-blw wants to merge 1 commit into
Conversation
…sh script Add .github/workflows/release.yml: tag-triggered (bwa-v*) publish of the five @blue-water-autonomy/html-eslint-* packages to Google Artifact Registry via direct Workload Identity Federation — no service account, no long-lived credentials. Delete the manual ./publish GitHub Packages script. Workflow body matches the AI-917 ticket spec (Prettier-formatted: double-quoted tag glob, single-space before inline comment — no semantic change). Linear: AI-917 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
7ad3911 to
0895669
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the manual
./publishGitHub Packages script with a tag-triggered CI workflow that publishes the five@blue-water-autonomy/html-eslint-*packages to Google Artifact Registry (us-central1-npm.pkg.dev/blue-water-autonomy-operations/bwa-npm) via direct Workload Identity Federation — no service account, no long-lived credentials.Changes (exactly the ticket scope — 2 files)
.github/workflows/release.yml("Publish to GAR"):push: tags: ['bwa-v*']+workflow_dispatch(optionalbump);checkout@v4atref: ${{ github.ref }}/fetch-depth: 0;google-github-actions/auth@v2against providergithub-oidc-bwa-npm, noservice_account:;yarn lerna publish --no-private --no-push --no-git-tag-version --yes, auto-selectingfrom-packagevsprerelease --preid bwa../publishscript.The workflow body matches the AI-917 spec; it is Prettier-formatted to satisfy the repo's
check:formatgate. The only formatting deltas are a double-quoted tag glob (["bwa-v*"]) and single-space-before-inline-comment — no semantic change to the trigger or any step.CI status / known pre-existing failure
packages/integration-test'smakePackageJsonwiresfile:overrides forhtml-eslint-plugin/-parser/-template-parser/-template-syntax-parserbut not@blue-water-autonomy/html-eslint-types, so the fixtureyarn installresolves it from public npm and failsYN0035: @blue-water-autonomy/html-eslint-types@npm:^0.54.0: Package not found(these packages are unpublished — the exact chicken-and-egg AI-917 exists to break). This PR's diff touches zero code/package/dep files, andmain.ymlonly runs CI on push-to-mainor PRs, so this is the first CI ever executed againsttempl-for-bwa; the failure exists ontempl-for-bwaHEAD regardless of this PR. Reconciling the fork is explicitly out of AI-917 scope; tracked separately.Post-merge operational verification (maintainer)
templ-for-bwaHEAD:git tag bwa-v0.54.2 && git push origin bwa-v0.54.2; confirm the run is green.gcloud artifacts versions list --repository=bwa-npm --location=us-central1 --project=blue-water-autonomy-operations --package=html-eslint-parser(and the other 4) shows the version.npm install(AI-918) resolves all 5 from GAR.Linear: AI-917
🤖 Generated with Claude Code