Skip to content

fix(ci): checkout FxA code before setup-node in l10n-gettext-extract#20686

Open
StaberindeZA wants to merge 1 commit into
mainfrom
fix-ci-l10n-checkout-order
Open

fix(ci): checkout FxA code before setup-node in l10n-gettext-extract#20686
StaberindeZA wants to merge 1 commit into
mainfrom
fix-ci-l10n-checkout-order

Conversation

@StaberindeZA

Copy link
Copy Markdown
Contributor

Because

  • Follow-up to fix(ci): pin Node version via .nvmrc in setup-node steps #20683. In .github/workflows/l10n-gettext-extract.yml the setup-node step uses node-version-file, but the FxA repo (which contains .nvmrc) is checked out into a fxa-code/ subdirectory after setup-node runs. As Copilot pointed out on the merged PR, this means setup-node cannot find .nvmrc on disk yet and the step would fail with "Unable to locate '.nvmrc'".

This pull request

  • Moves the "Clone FxA code repository" step ahead of "Set up Node" in .github/workflows/l10n-gettext-extract.yml and points node-version-file at fxa-code/.nvmrc so setup-node can resolve the file.
  • Leaves the l10n repo checkout after setup-node, since it is not needed for Node setup.

Issue that this pull request solves

Closes: N/A (chore-only CI fix, no ticket)

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).
  • I have manually reviewed all AI generated code.

How to review (Optional)

  • Key files/areas to focus on:
  • Suggested review order:
  • Risky or complex parts:

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

This addresses the Copilot review comment on #20683 that landed after that PR was merged. The two other workflows touched in #20683 (docker.yml, deploy-storybooks.yml) already check out the repo at the runner root before setup-node, so they did not need the same reorder.

Because:
- setup-node reads node-version-file from the runner filesystem at
  the time the step runs. In l10n-gettext-extract.yml the FxA repo
  is checked out into a 'fxa-code' subdirectory *after* setup-node,
  so '.nvmrc' did not exist on disk yet and setup-node failed with
  "Unable to locate '.nvmrc'".

This commit:
- Moves the "Clone FxA code repository" step ahead of "Set up Node"
  and points node-version-file at 'fxa-code/.nvmrc' so setup-node
  finds the file. The l10n repo checkout remains after setup-node
  since it is not needed for Node setup.
@StaberindeZA StaberindeZA marked this pull request as ready for review June 3, 2026 21:41
@StaberindeZA StaberindeZA requested a review from a team as a code owner June 3, 2026 21:41
Copilot AI review requested due to automatic review settings June 3, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the l10n-gettext-extract GitHub Actions workflow so actions/setup-node can successfully resolve the Node version from the FxA repo’s .nvmrc when the repo is checked out into a subdirectory.

Changes:

  • Moves the FxA repository checkout step to run before actions/setup-node.
  • Updates node-version-file to point at fxa-code/.nvmrc (matching the checkout path).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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