Skip to content

fix(ci): matrix context broke npm-release workflow parsing - #58

Merged
danii1 merged 1 commit into
mainfrom
fix/npm-release-matrix-context
Aug 24, 2026
Merged

fix(ci): matrix context broke npm-release workflow parsing#58
danii1 merged 1 commit into
mainfrom
fix/npm-release-matrix-context

Conversation

@danii1

@danii1 danii1 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

PR #57 was merged at 7fafb53, before the final fix commit landed on its branch — so main still carries the broken npm-release.yml and every trigger fails instantly with a run named .github/workflows/npm-release.yml (no jobs, "workflow file issue").

Root cause (unchanged from the discussion in #57): the job-level if: referenced ${{ matrix.* }}, but the matrix context is not available in job-level conditions (only github, inputs, needs, vars), so GitHub rejected the whole workflow file.

Fix: replace the matrix with two explicit jobs (release-code / release-pm), each gated by its own tag prefix (refs/tags/code-v* / refs/tags/pm-v*) or dispatch checkbox. Dispatch input is now two booleans (code / pm).

Validated with actionlint locally.

Test plan

  • actionlint .github/workflows/npm-release.yml clean
  • After merge: push a throwaway tag (e.g. pm-v2.4.1-test) or run via workflow_dispatch to confirm jobs start; delete the release if desired

Job-level 'if' cannot reference the matrix context (only github,
inputs, needs, vars are available there), so GitHub rejected the
workflow file and every run failed before any job started — visible
as runs named '.github/workflows/npm-release.yml' with no jobs.

Replace the matrix with two explicit jobs (release-code / release-pm),
each gated by its own tag prefix or dispatch checkbox.
@danii1
danii1 merged commit ee40f0e into main Aug 24, 2026
1 check passed
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.

1 participant