Skip to content

Migrate from Yarn to npm with exact dependency pin preservation - #22983

Merged
sergiou87 merged 8 commits into
developmentfrom
sergiou87-npm-migration
Nov 5, 2026
Merged

sergiou87 merged 8 commits into
developmentfrom
sergiou87-npm-migration

Conversation

@sergiou87

@sergiou87 sergiou87 commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Closes #21606

Description

Deploy PR: https://github.com/desktop/deploy/pull/54

  • Replace vendored Yarn, its configuration, and five Yarn lockfiles with the npm version bundled with Node.js and npm lockfiles.
  • Preserve every original direct, transitive, and optional dependency resolution and checksum, retaining nested copies instead of allowing version-changing deduplication. The migration audit checks 3,422 dependency edges with zero mismatches; both npm ci and npm install leave all five lockfiles byte-identical.
  • Migrate build, test, lint, release, and CI commands while preserving native-package rebuilds, Windows-safe CLI invocation, script argument forwarding, target-specific Copilot/Koffi binaries, and release-version lockfile synchronization.
  • Update contributor and agent documentation. No application UI changes.

Validation

Validated locally on macOS arm64:

  • npm ci --foreground-scripts --no-audit --no-fund and npm install --foreground-scripts --no-audit --no-fund — passed; exact pins and lockfile hashes unchanged.
  • GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.bareRepository GIT_CONFIG_VALUE_0=all npm test -- app/test/unit script eslint-rules — 2,070 passed, one existing skip. The Git override is confined to test subprocesses.
  • npm run lint, npm run check:eslint, npm exec -- tsc --noEmit, and npm exec -- tsc -p app/src/highlighter --noEmit — passed.
  • npm run build:dev and NODE_ENV=development RELEASE_CHANNEL=development npm run package — passed, including the macOS app and ZIP.
  • RELEASE_CHANNEL=production npm run test:e2e:unpackaged — production build passed; all 10 Electron smoke tests passed with isolated temporary user state.
  • Standalone vendor installs/builds passed, including all 11 desktop-trampoline tests. Cross-target install checks passed for darwin-x64, win32-x64, and win32-arm64.
  • Test build: 3.6.7-test4

Release notes

Notes: no-notes

dependabot Bot and others added 5 commits October 7, 2026 09:45
Bumps [undici](https://github.com/nodejs/undici) from 6.28.0 to 6.29.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v6.28.0...v6.29.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.29.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Replace vendored Yarn, its configuration, and its lockfiles with npm installs and package-lock files. Preserve all original direct, transitive, and optional dependency resolutions and integrity checks without upgrading or downgrading packages.

Switch build, lint, test, release, and CI commands to npm. Preserve native package rebuilds, cross-target optional binaries, Windows-safe CLI invocation, script argument forwarding, and release-version lockfile synchronization.
Document npm ci, npm run, npm exec, script argument forwarding, and the independent application and vendor lockfiles. Explain preservation of original dependency pins and native cross-compilation behavior.

Update setup, testing, linting, packaging, release, and dependency-upgrade instructions. Remove obsolete Yarn bootstrap and vendored-version upgrade guidance.
Bring in the latest authentication, notification, and telemetry changes from origin/upgrade-webpack. Resolve the modified/deleted yarn.lock conflict by retaining the npm migration's deletion.

The npm lockfiles already contain the upstream Undici 6.29.0 and 7.30.0 resolutions. Preserve their exact dependency graph and checksums without regenerating or changing unrelated pins.
Comment thread app/.prebuild-installrc
@@ -0,0 +1,3 @@
# prebuild-install 5 expects _from metadata that modern npm no longer writes.
# Force the download attempt only; this does not enable npm --force.
force=true

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This seems to be necessary for deps that use prebuild-install (registry-js, admin-fs…)

Comment thread app/package.json
Comment on lines +19 to +21
"allowScripts": {
"koffi": false
},

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Needed to get koffi's deps for cross compilation

Base automatically changed from upgrade-webpack to development October 8, 2026 09:39
@sergiou87
sergiou87 requested a balanced review from Copilot October 8, 2026 09:40

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.

🟡 Changes recommended

The release workflow breaks pre-migration hotfix refs, and the declared Node/npm engine requirements are inconsistent.

2 open findings
What changed in this PR

Migrates GitHub Desktop’s dependency management and automation from vendored Yarn Classic to npm while preserving dependency resolutions.

Changes:

  • Replaces Yarn lockfiles/configuration with npm lockfiles and policies.
  • Migrates build, test, release, packaging, and CI commands to npm.
  • Adds npm command helpers, regression tests, and updated contributor documentation.
File Description
.github/​actions/​setup-ci-environment/​action.yml Migrates CI setup to npm.
.github/​agents/​deskocat.agent.md Updates agent commands.
.github/​agents/​electron-upgrader.agent.md Updates upgrade workflow commands.
.github/​copilot-instructions.md Documents npm development workflows.
.github/​skills/​testing/​SKILL.md Migrates testing guidance.
.github/​skills/​update-git/​SKILL.md Migrates Git upgrade guidance.
.github/​workflows/​ci.yml Runs CI through npm.
.github/​workflows/​draft-release.yml Migrates release automation.
.gitignore Removes Yarn error-log entry.
.npmrc Defines root npm install policy.
.prettierignore Excludes generated npm lockfiles.
.vscode/​settings.json Removes vendored Yarn exclusion.
.yarnrc Removes root Yarn configuration.
app/​.npmrc Defines application npm policy.
app/​.prebuild-installrc Enables legacy prebuild downloads.
app/​.yarnrc Removes application Yarn configuration.
app/​package-lock.json Locks application dependencies.
app/​package.json Adds Koffi install-script policy.
app/​test/​unit/​usage-data-test.ts Updates remediation command.
app/​yarn.lock Removes application Yarn lockfile.
docs/​contributing/​building-arm64.md Updates ARM64 npm workflow.
docs/​contributing/​linting.md Updates lint commands.
docs/​contributing/​linux-testing-and-you.md Updates Linux build commands.
docs/​contributing/​setup-linux.md Documents npm setup on Linux.
docs/​contributing/​setup-macos.md Documents npm setup on macOS.
docs/​contributing/​setup-windows.md Documents npm setup on Windows.
docs/​contributing/​setup.md Updates setup and testing guidance.
docs/​contributing/​tooling.md Updates development commands.
docs/​contributing/​upgrading-dependencies.md Updates dependency validation commands.
docs/​contributing/​working-with-packages.md Documents npm dependency management.
docs/​process/​writing-release-notes.md Updates release command.
docs/​technical/​adding-tests.md Updates test commands.
docs/​technical/​e2e-smoke-tests.md Updates E2E commands.
docs/​technical/​packaging.md Updates packaging validation command.
docs/​technical/​ui-component-testing.md Updates UI test commands.
eslint-rules/​README.md Updates ESLint development commands.
package-lock.json Locks root build dependencies.
package.json Migrates scripts and metadata to npm.
script/​build.ts Installs packaged dependencies through npm.
script/​draft-release/​ci.ts Synchronizes release versions with lockfiles.
script/​draft-release/​run.ts Uses safe npm version invocation.
script/​generate-octicons.ts Runs formatting through npm.
script/​install-arm64-deps.sh Simplifies ARM64 installation with npm.
script/​npm-test.ts Tests npm invocation and install policies.
script/​npm.ts Adds npm command helpers.
script/​post-install.ts Migrates nested installation to npm.
script/​start.ts Updates build error guidance.
vendor/​desktop-notifications/​.npmrc Adds vendor npm policy.
vendor/​desktop-notifications/​docs/​index.md Updates installation instructions.
vendor/​desktop-notifications/​package-lock.json Locks notification dependencies.
vendor/​desktop-notifications/​package.json Migrates package scripts.
vendor/​desktop-notifications/​yarn.lock Removes Yarn lockfile.
vendor/​desktop-trampoline/​.npmrc Adds vendor npm policy.
vendor/​desktop-trampoline/​README.md Updates build instructions.
vendor/​desktop-trampoline/​package-lock.json Locks trampoline dependencies.
vendor/​desktop-trampoline/​yarn.lock Removes Yarn lockfile.
vendor/​windows-argv-parser/​.npmrc Adds vendor npm policy.
vendor/​windows-argv-parser/​package-lock.json Locks parser dependencies.
vendor/​windows-argv-parser/​yarn.lock Removes Yarn lockfile.
vendor/​yarn-1.21.1.js Removes vendored Yarn executable.
yarn.lock Removes root Yarn lockfile.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread .github/workflows/draft-release.yml Resolved
Comment thread package.json Resolved
Align the declared Node engine with Electron's build tooling, synchronize root lockfile metadata, and document the supported minimum without changing dependency pins.

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.

🔵 Needs a closer look

The manual release-version recovery path can leave the application lockfile stale and cause subsequent npm installs to fail.

0 open findings

2 resolved since last review
Previously missed (1)

In code that hasn't changed since last review

Medium severity Recovery instructions omit updating app/package-lock.json

script/​draft-release/​run.ts:110

If this new npm version call fails, the catch block still tells the releaser to edit only app/package.json. That leaves app/package-lock.json at the old version, so the next npm ci rejects the release branch. The recovery instruction must update both files (preferably by rerunning the equivalent npm command).

🧠 Review effort: Balanced

@sergiou87
sergiou87 marked this pull request as ready for review October 9, 2026 08:28
@sergiou87
sergiou87 requested a review from a team as a code owner October 9, 2026 08:28
@sergiou87
sergiou87 requested a review from BagToad October 9, 2026 08:28
Integrate development at 846af4a and regenerate npm locks with the same direct and transitive pins as its Yarn lockfiles. Translate incoming security resolutions to npm overrides, retain npm installation settings, and preserve the updated notarization workflow.
Pass the matrix architecture to script tests so importing the renderer webpack configuration resolves the Koffi package installed for cross-compilation, rather than the runner host's architecture.
@sergiou87
sergiou87 merged commit c2c43be into development Nov 5, 2026
9 checks passed
@sergiou87
sergiou87 deleted the sergiou87-npm-migration branch November 5, 2026 13:18
bahooo22 added a commit to bahooo22/github_desktop that referenced this pull request Nov 14, 2026
RU: Мерж апстрима a95e13a — переход на npm, версия 3.6.11-beta1

Апстрим влил 84 коммита, главный из которых — PR desktop#22983, миграция с yarn на npm:
удалён вендоренный yarn и все yarn.lock, добавлены package-lock.json, .npmrc и
обёртки script/npm.ts. Заодно пришли Copilot assisted commit (PR desktop#23132, desktop#23125,
desktop#23059) и dependabot ansi-regex. Наш готовый мерж PR desktop#23044 (1527ef6) принят
первым родителем.

Что изменено?
- `package.json` (+35/-27): апстримный блок scripts в npm-форме, `engines` node
  >=22.12.0 и npm >=11.17.0, `overrides` вместо `resolutions`; форковые
  `l10n:parity`, `l10n:audit`, `l10n:upstream`, `l10n:bundles` и
  `release-build-info` сохранены внутри нового блока, ссылок на yarn в scripts нет.
- `package-lock.json` (+17484/-0) и `app/package-lock.json` (+4163/-0): локи
  апстрима приняты без правок — иначе `npm ci` не пройдёт; `yarn.lock` (-7272),
  `app/yarn.lock` (-2304) и `vendor/yarn-1.21.1.js` (-147315) удалены апстримом.
- `.github/workflows/ci.yml` (+29/-24): приняты `cache: npm` и
  `cache-dependency-path` по четырём локам, `npm ci` и `npm run …`; поверх
  возвращён форковый кеш встроенного Git (dugite) с ключом по
  `hashFiles('app/package-lock.json')` и три попытки установки вокруг `npm ci`.
- `.github/actions/setup-ci-environment/action.yml` (+11/-18): апстримный
  `npm ci` с `npm_config_arch`, форковый повтор установки сохранён; шаг
  `yarn add --optional` для cross-arch Copilot SDK удалён — npm ставит нужный
  runtime сам через `--cpu`.
- `app/src/lib/stores/app-store.ts` (+1487/-380): принят апстримный
  `performPush`; блоки, где жили `t('appStore.pushingTo')` и подписи
  fast-forward, апстрим вынес из этого места, поэтому конфликт снят удалением
  наших блоков, импорт `t` из `../l10n/core` и остальные 10 вызовов на месте.
- `app/src/ui/changes/commit-message.tsx` (+845/-291): файл переписан апстримом
  (режимы коммита, `DropdownSelectButton`, `CopilotCommitPanel`); из нашей
  версии возвращены 42 вызова `t()` — заголовок кнопки и «последний коммит»,
  тексты хуков, подсказки длины summary, статус «Committed Just now», бейдж New,
  выбранные файлы и требование summary; импорт `t` добавлен заново.
- `app/src/ui/clone-repository/clone-repository.tsx` (+42/-0) и
  `app/src/ui/add-repository/create-repository.tsx` (+129/-40): объединены
  импорты — наш `t`/`Trans` плюс апстримные `canonicalMutationPath`,
  `isRepositoryAffectedByAssistedCommit`, `withoutRepositoryGitAccess`.
- `app/src/ui/lib/author-input/author-handle.tsx` (+19/-3): апстримная подпись
  с `instruction`; фраза «press backspace…» вынесена в новый ключ
  `authorHandle.removeInstruction`, «Remove {author}» — в
  `authorHandle.removeAriaLabel`.
- `app/src/ui/lib/author-input/author-input.tsx` (+157/-40): принята апстримная
  логика `pendingAuthorResolutions`; импорты `t` и `arrayEquals` объединены.
- `app/src/ui/worktrees/worktree-list-item-context-menu.ts` (+5/-2): объединены
  импорты `t` и `isRepositoryAffectedByAssistedCommit`.
- Остальные 237 файлов — правки апстрима без форкового пересечения.

Зачем?
Апстрим сменил пакетный менеджер: yarn в репозитории больше нет, установка идёт
через `npm ci`, а скрипты — через `npm run`. Без резолва форк остался бы с
yarn-вызовами в CI и релизных workflow, которые этот мерж ломает. Одновременно
появилась новая механика коммита через Copilot, и её строки надо было вернуть в
слой перевода, иначе эти экраны остались бы на английском.

Замеры?
Сняты на хосте, контейнер ещё не переведён на npm. `git merge --no-ff` дал 9
контентных конфликтов против 9 предсказанных `git merge-tree`; маркеров
конфликта в `app/src`, `app/locales`, `script`, `docs`, `.github` и
`package.json` — 0; `git diff --check` чист. Форковые скрипты в `package.json`
проверены разбором JSON: `l10n:parity/audit/upstream/bundles` и
`release-build-info` присутствуют, ни один script не содержит `yarn`. Точных
`t()`-вызовов: 10 в `app-store.ts`, 42 в `commit-message.tsx`; импорт `t`
добавлен там, где апстримная версия его не содержала. Локи не правились:
`git diff --cached --numstat 1527ef6 -- package-lock.json app/package-lock.json`
показывает только добавления апстрима. Итог мержа — 246 файлов,
+81 728/-160 879.

Принятый остаток?
Гейты не сняты: `tsc --noEmit`, `npm test`, `l10n:parity/audit/upstream/bundles`,
`lint`, `markdownlint` и `test:script` требуют контейнера на npm — его перевод и
пересборка идут следующим коммитом. Форматирование Prettier не прогонялось.
Восемь новых строк Copilot-панели и ещё около десяти краевых (`commitMessage.*`,
`authorHandle.*`) пока литералы: они переводятся отдельными коммитами, поэтому
`l10n:audit` временно покажет рост. `tlh` и `qya` для этих строк получат
перевод, а не заглушки. Пуш — за пользователем.

Итог
Дерево догнало апстрим по структуре: npm-миграция принята, форковые скрипты и
dugite-кеш сохранены, все локализованные экраны удержали перевод после
переписывания `commit-message.tsx` и выбора аккаунта. Проверка типов и тестов —
следующий шаг, до неё коммит считается непринятым.

---

EN: Merge upstream a95e13a - npm migration, version 3.6.11-beta1

Upstream brought 84 commits; the main one is PR desktop#22983, the yarn-to-npm migration:
the vendored yarn and every yarn.lock are gone, package-lock.json, .npmrc and the
script/npm.ts wrappers are in. Copilot assisted commit (PR desktop#23132, desktop#23125,
desktop#23059) and the ansi-regex bump came along. Our finished PR desktop#23044 merge
(1527ef6) is the first parent.

What changed?
- `package.json` (+35/-27): upstream's scripts block in npm form, `engines` node
  >=22.12.0 and npm >=11.17.0, `overrides` instead of `resolutions`; the fork's
  `l10n:parity`, `l10n:audit`, `l10n:upstream`, `l10n:bundles` and
  `release-build-info` survive inside the new block, and no script mentions yarn.
- `package-lock.json` (+17484/-0) and `app/package-lock.json` (+4163/-0):
  upstream locks taken untouched - editing them would break `npm ci`; `yarn.lock`
  (-7272), `app/yarn.lock` (-2304) and `vendor/yarn-1.21.1.js` (-147315) are
  deleted upstream.
- `.github/workflows/ci.yml` (+29/-24): `cache: npm` and `cache-dependency-path`
  for the four locks, `npm ci` and `npm run …` accepted; the fork's embedded Git
  (dugite) cache is restored on top with a key from
  `hashFiles('app/package-lock.json')` and three install attempts around `npm ci`.
- `.github/actions/setup-ci-environment/action.yml` (+11/-18): upstream `npm ci`
  with `npm_config_arch`, the fork's retry kept; the `yarn add --optional`
  cross-arch Copilot SDK step is gone because npm now picks the runtime via
  `--cpu`.
- `app/src/lib/stores/app-store.ts` (+1487/-380): upstream `performPush`
  accepted; the blocks that held `t('appStore.pushingTo')` and the fast-forward
  labels moved elsewhere upstream, so the conflict was resolved by dropping our
  blocks while the `t` import from `../l10n/core` and the other 10 calls stay.
- `app/src/ui/changes/commit-message.tsx` (+845/-291): the file was rewritten by
  upstream (commit modes, `DropdownSelectButton`, `CopilotCommitPanel`); 42 `t()`
  calls are back from our version - button title and "last commit", hook texts,
  summary-length hints, "Committed Just now", the New badge, file selection and
  the required-summary error; the `t` import was re-added.
- `app/src/ui/clone-repository/clone-repository.tsx` (+42/-0) and
  `app/src/ui/add-repository/create-repository.tsx` (+129/-40): imports merged -
  our `t`/`Trans` plus upstream's `canonicalMutationPath`,
  `isRepositoryAffectedByAssistedCommit`, `withoutRepositoryGitAccess`.
- `app/src/ui/lib/author-input/author-handle.tsx` (+19/-3): upstream's label with
  an `instruction`; the "press backspace…" phrase moved to the new
  `authorHandle.removeInstruction` key and "Remove {author}" to
  `authorHandle.removeAriaLabel`.
- `app/src/ui/lib/author-input/author-input.tsx` (+157/-40): upstream's
  `pendingAuthorResolutions` logic accepted; `t` and `arrayEquals` imports
  merged.
- `app/src/ui/worktrees/worktree-list-item-context-menu.ts` (+5/-2): `t` and
  `isRepositoryAffectedByAssistedCommit` imports merged.
- The remaining 237 files are upstream edits with no fork overlap.

Why?
Upstream switched package managers: yarn no longer exists in the repository,
installs go through `npm ci` and scripts through `npm run`. Without this
resolution the fork would keep yarn calls in CI and release workflows that this
merge breaks. At the same time Copilot gained a new commit flow whose strings had
to be returned to the translation layer, or those screens would stay English.

Verified
Measured on the host; the container is not on npm yet. `git merge --no-ff`
produced 9 content conflicts against 9 predicted by `git merge-tree`; conflict
markers in `app/src`, `app/locales`, `script`, `docs`, `.github` and
`package.json`: 0; `git diff --check` is clean. Fork scripts in `package.json`
were checked by parsing the JSON: `l10n:parity/audit/upstream/bundles` and
`release-build-info` are present and no script contains `yarn`. Strict `t()`
calls: 10 in `app-store.ts`, 42 in `commit-message.tsx`; the `t` import was
re-added wherever upstream's version lacked it. Locks were not edited:
`git diff --cached --numstat 1527ef6 -- package-lock.json app/package-lock.json`
shows upstream additions only. The merge itself is 246 files, +81 728/-160 879.

Accepted remainder
Gates are not taken: `tsc --noEmit`, `npm test`, `l10n:parity/audit/upstream/bundles`,
`lint`, `markdownlint` and `test:script` need an npm-based container, whose
conversion and rebuild are the next commit. Prettier was not run. Eight new
Copilot-panel strings and about ten edge ones (`commitMessage.*`,
`authorHandle.*`) are still literals: they get their own translation commits, so
`l10n:audit` will temporarily show growth. `tlh` and `qya` will receive real
translations, not stubs. Pushing stays with the author.

Result
The tree caught up structurally: the npm migration is in, fork scripts and the
dugite cache survive, and every localized screen kept its translation after
`commit-message.tsx` and the account picker were rewritten. Type-checking and
tests are the next step; until then this commit is not accepted.
bahooo22 added a commit to bahooo22/github_desktop that referenced this pull request Nov 14, 2026
Апстрим удалил yarn из репозитория (PR desktop#22983), поэтому форковая инфраструктура,
построенная на нём, перестала бы работать: релизные workflow, локальные скрипты
стенда и документация звали команды, которых в дереве больше нет. Этот коммит
переводит их на npm и закрывает гейт форкового changelog под новую версию.

Что изменено?
- `.github/workflows/release-fork-windows.yml` (+44/-95): `npm ci` с
  `npm_config_arch` вместо `yarn install --frozen-lockfile`; шаг
  `Install target-architecture native runtimes` заменён проверкой
  `Verify target-architecture native runtimes` (npm ставит платформенные
  optional-пакеты сам, а сборка по-прежнему падает, если целевой koffi или
  Copilot SDK не резолвится); кеш встроенного Git — по
  `hashFiles('app/package-lock.json')`; `npm_config_cache` вместо
  `YARN_CACHE_FOLDER`; `npm run build:prod|package|release-build-info`; убран
  `NODE_OPTIONS` с DEP0169/DEP0040 — эти предупреждения давал вендоренный yarn.
- `.github/workflows/release-fork-linux.yml` (+14/-22) и
  `.github/workflows/release-fork-macos.yml` (+8/-11): те же замены, ключ кеша
  по трём `package-lock.json`, dugite-слот по `app/package-lock.json`.
- `gdlab/release.sh` (+4/-10) и `gdlab/assemble-linux-bundle.sh` (+2/-2):
  `npm run build:prod`, сообщения и проверки; убран блок `NODE_OPTIONS`.
- `tools/i18n-lab/Dockerfile` (+5/-1): `node:24.22.1-bookworm` и явный
  `npm install -g [email protected]` под `engines` из `package.json`.
- `AGENTS.md` (+13/-13), `README.md` (+3/-3), `docs/fork-releases.md` (+37/-38):
  раздел «Checks before committing», команды разработки и раздел «Кеши
  загрузок» переведены на `npm ci` / `npm run …`; хроника прошлых прогонов
  оставлена как история.
- `changelog-fork.json` (+8/-0): запись `3.6.11-beta1` с двумя заметками —
  `releaseNotes.fork.upstreamSync3611` (improved) и
  `releaseNotes.fork.copilotCommit` (new).
- `app/locales/en.json` (+3/-1), `app/locales/ru.json` (+3/-1),
  `app/locales/uk.json` (+3/-1): оба ключа заметок с переводами.
- `app/locales/la.json` (+28/-24), `app/locales/eo.json` (+28/-24): переводы,
  пути добавлены в `meta.ready`.
- `app/locales/tlh.json` (+26/-24), `app/locales/qya.json` (+26/-24): те же два
  ключа, но значения английские и в `meta.ready` не внесены — терминов этой темы
  (npm, workflow, Copilot commit) в каталогах нет, а формы без зондов по словарю
  не выдумывались.
- `docs/fork-localization-progress.md` (+36/-0): секция «Переход форка на npm».

Зачем?
Без этого коммита релизный прогон форка падает на первом же шаге установки:
`yarn` в дереве больше не существует, а `yarn.lock`, на который ссылались ключи
кеша, удалён апстримом. Одновременно гейт `fork-changelog-test` требует запись
ровно под `app/package.json.version` — после мержа это `3.6.11-beta1`.

Замеры?
Сняты на хосте. `grep -rn 'yarn\|YARN'` по трём релизным workflow, двум
скриптам `gdlab/`, `AGENTS.md`, `README.md` и Dockerfile даёт 2 вхождения — оба
в пояснительном комментарии о том, почему шаг `yarn add --optional` удалён;
командных вызовов yarn нет. `changelog-fork.json` разбирается как JSON, верхняя
запись — `3.6.11-beta1`, её `notes` ссылаются на два существующих ключа;
`app/package.json.version` совпадает. Каталоги разбираются как JSON; у `la` и
`eo` оба пути появились в `meta.ready`, у `tlh` и `qya` — нет. Гейты ещё не
сняты: контейнер пересобирается под npm.

Принятый остаток?
`npm ci`, `npm run lint`, `npm test`, `npm run test:script`, `tsc --noEmit`,
`npm run l10n:parity/audit/upstream/bundles` и `markdownlint` снимаются после
переноса коммитов в основное дерево и пересборки образа `gdlab` — до этого
коммит считается непринятым. Две заметки релиза в `tlh` и `qya` остаются
английскими. Пуш — за пользователем.

Итог
Форк снова собирается теми же командами, что и апстрим, а его релизные workflow
и стенд не зависят от удалённого yarn; запись `3.6.11-beta1` закрывает гейт
changelog. Проверка типов, тестов и сборки — следующий шаг и единственный
незакрытый гейт.

---

EN: Fork moves to npm with upstream, release 3.6.11-beta1 recorded

Upstream removed yarn from the repository (PR desktop#22983), so the fork's
infrastructure built on it would stop working: release workflows, local lab
scripts and documentation called commands that no longer exist. This commit moves
them to npm and satisfies the fork changelog gate for the new version.

What changed?
- `.github/workflows/release-fork-windows.yml` (+44/-95): `npm ci` with
  `npm_config_arch` instead of `yarn install --frozen-lockfile`; the
  `Install target-architecture native runtimes` step became
  `Verify target-architecture native runtimes` (npm installs the platform
  optional packages itself, while the build still fails when the target koffi or
  Copilot SDK does not resolve); the embedded Git cache keys on
  `hashFiles('app/package-lock.json')`; `npm_config_cache` replaces
  `YARN_CACHE_FOLDER`; `npm run build:prod|package|release-build-info`; the
  `NODE_OPTIONS` DEP0169/DEP0040 workaround is gone because the vendored yarn
  produced those warnings.
- `.github/workflows/release-fork-linux.yml` (+14/-22) and
  `.github/workflows/release-fork-macos.yml` (+8/-11): the same replacements, the
  cache key uses the three `package-lock.json` files, the dugite slot keys on
  `app/package-lock.json`.
- `gdlab/release.sh` (+4/-10) and `gdlab/assemble-linux-bundle.sh` (+2/-2):
  `npm run build:prod`, messages and checks; the `NODE_OPTIONS` block is gone.
- `tools/i18n-lab/Dockerfile` (+5/-1): `node:24.22.1-bookworm` and an explicit
  `npm install -g [email protected]` matching `engines` in `package.json`.
- `AGENTS.md` (+13/-13), `README.md` (+3/-3), `docs/fork-releases.md` (+37/-38):
  the "Checks before committing" section, developer commands and the download
  caches section now use `npm ci` / `npm run …`; the run history stays as
  history.
- `changelog-fork.json` (+8/-0): the `3.6.11-beta1` entry with two notes -
  `releaseNotes.fork.upstreamSync3611` (improved) and
  `releaseNotes.fork.copilotCommit` (new).
- `app/locales/en.json` (+3/-1), `app/locales/ru.json` (+3/-1),
  `app/locales/uk.json` (+3/-1): both note keys with translations.
- `app/locales/la.json` (+28/-24), `app/locales/eo.json` (+28/-24): translations
  with both paths added to `meta.ready`.
- `app/locales/tlh.json` (+26/-24), `app/locales/qya.json` (+26/-24): the same
  two keys, but with English values and without `meta.ready` entries - the
  catalogs have no vocabulary for this topic (npm, workflow, Copilot commit) and
  forms are not invented without probes.
- `docs/fork-localization-progress.md` (+36/-0): the "Fork moves to npm" section.

Why?
Without this commit the fork's release run fails on the first install step: yarn
no longer exists in the tree, and the `yarn.lock` the cache keys referred to was
deleted upstream. At the same time `fork-changelog-test` demands an entry exactly
for `app/package.json.version`, which is `3.6.11-beta1` after the merge.

Verified
Measured on the host. `grep -rn 'yarn\|YARN'` across the three release workflows,
two `gdlab/` scripts, `AGENTS.md`, `README.md` and the Dockerfile returns 2 hits -
both inside the explanatory comment about why the `yarn add --optional` step was
removed; there are no yarn command invocations. `changelog-fork.json` parses as
JSON, its top entry is `3.6.11-beta1`, its `notes` point at two existing keys, and
`app/package.json.version` matches. All catalogs parse as JSON; both paths appear
in `meta.ready` for `la` and `eo` and not for `tlh` and `qya`. Gates are not
taken yet: the container is being rebuilt for npm.

Accepted remainder
`npm ci`, `npm run lint`, `npm test`, `npm run test:script`, `tsc --noEmit`,
`npm run l10n:parity/audit/upstream/bundles` and `markdownlint` are taken after
the commits move into the main tree and the `gdlab` image is rebuilt; until then
this commit is not accepted. The two release notes stay English in `tlh` and
`qya`. Pushing stays with the author.

Result
The fork builds with the same commands as upstream again, its release workflows
and lab no longer depend on the removed yarn, and the `3.6.11-beta1` entry
satisfies the changelog gate. Type-checking, tests and the production build are
the next step and the only open gate.
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.

Consider migrating from Yarn Classic to a modern package manager

4 participants