👾 Open Computer Use – Open-Source Alternative to Codex Computer Use
Swift accessibilityai-agentai-agentsclaude-codecodexcodex-computer-usecomputer-usecomputer-use-agentcross-platformcuadesktop-automationgemini-cligui-automationmacosmcpmodel-context-protocolopen-computer-useopen-computer-use-mcpopenai-codexopencode
Align CI npm auth with local publish path
Leoe3f221e415bf
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex c557264..0f240f2 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -34,7 +34,6 @@ jobs:uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:node-version: "22"- registry-url: "https://registry.npmjs.org"- name: Build npm release artifactsrun: npm run npm:pack@@ -53,6 +52,11 @@ jobs:NPM_TOKEN: ${{ secrets.NPM_TOKEN }}run: |if [ -n "${NPM_TOKEN}" ]; then+ cat > "${RUNNER_TEMP}/npm-token-fallback.npmrc" <<EOF+//registry.npmjs.org/:_authToken=${NPM_TOKEN}+registry=https://registry.npmjs.org/+EOF+ echo "NPM_CONFIG_USERCONFIG=${RUNNER_TEMP}/npm-token-fallback.npmrc" >> "${GITHUB_ENV}"echo "NODE_AUTH_TOKEN=${NPM_TOKEN}" >> "${GITHUB_ENV}"fidiff --git a/docs/histories/2026-04/20260417-2218-fix-npm-auth-mode-selection.md b/docs/histories/2026-04/20260417-2218-fix-npm-auth-mode-selection.mdindex 714c154..9cf5a60 100644--- a/docs/histories/2026-04/20260417-2218-fix-npm-auth-mode-selection.md+++ b/docs/histories/2026-04/20260417-2218-fix-npm-auth-mode-selection.md@@ -8,6 +8,8 @@- **修正包仓库元数据**:把 npm staging 包里生成的 `repository.url` 从 `git+https://...git` 改成和 GitHub 仓库精确一致的 `https://github.com/iFurySt/open-codex-computer-use`。- **强制 token fallback 真正生效**:在 `publish-packages.mjs` 里,当 `NODE_AUTH_TOKEN` 已经存在时,主动清掉 GitHub Actions 暴露给 npm CLI 的 OIDC 环境变量,避免 npm 继续优先走 Trusted Publishing。+- **绕开 setup-node 生成的 npmrc**:workflow 不再依赖 `actions/setup-node` 的 `registry-url` 配置,而是在存在 `NPM_TOKEN` 时显式写一份临时 `.npmrc` 并通过 `NPM_CONFIG_USERCONFIG` 注入,保证 CI 与本地成功路径一致。+- **补一轮最小外部验证**:本地用同一个 `NPM_TOKEN` 对 `open-codex-computer-use-mcp` 成功发布了一个 `debug` dist-tag 的临时 prerelease,确认 token 本身具备真实 publish 能力。### 🧠 Design Intent (Why)