👾 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
Fix release workflow YAML for npm auth
Leo99b8522cbb7e
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 0f240f2..ced1893 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -52,10 +52,10 @@ 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+ printf '%s\n%s\n' \+ "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" \+ "registry=https://registry.npmjs.org/" \+ > "${RUNNER_TEMP}/npm-token-fallback.npmrc"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 9cf5a60..503bab5 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@@ -10,6 +10,7 @@- **强制 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 能力。+- **修正 workflow YAML 细节**:把 `.npmrc` 生成逻辑从 heredoc 改成 `printf`,避免 GitHub Actions 把 workflow 解析成无效 YAML 后出现“run 存在但没有 job”的假失败。### 🧠 Design Intent (Why)