Skip to content

Conversation

@cm-dyoshikawa
Copy link
Contributor

@cm-dyoshikawa cm-dyoshikawa commented Oct 17, 2025

pnpmとlernaを最新化することでOIDC trusted Publishingが使用可能になる
別途、npm webコンソール側で OIDC trusted Publishingの設定済み

https://efcl.info/2025/09/07/npm-oidc/

- Update pnpm from v9 to v10 across all workflows
- Update Node.js from 18 to 24 in publish workflows
- Update minimum Node.js engine from >=14.0.0 to >=22.0.0 in zenn-cli
- Update pnpm engine constraint from >=9 <10 to >=10 <11

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@cm-dyoshikawa cm-dyoshikawa added the enhancement 機能以外の改善 label Oct 17, 2025
cm-dyoshikawa and others added 2 commits October 17, 2025 00:42
- Upgrade @lerna-lite/cli from 1.15.1 to 4.9.0
- Add @lerna-lite/version and @lerna-lite/publish as optional dependencies
- Version and publish commands became optional since lerna-lite v2.0.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add id-token: write permission for OIDC authentication
- Remove NODE_AUTH_TOKEN (NPM_TOKEN) from both workflows
- Add --provenance flag to publish commands for package attestation
- Apply changes to both publish-canary.yml and publish-latest.yml

This enables secure, token-free publishing from GitHub Actions using
OpenID Connect and provides verifiable package provenance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@cm-dyoshikawa cm-dyoshikawa changed the title chore: update Node.js and pnpm versions Node.js,pnpm,lerna-liteをアップデート Oct 17, 2025
Comment on lines +17 to +19
permissions:
contents: read
id-token: write
Copy link
Contributor Author

Choose a reason for hiding this comment

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


- name: Publish canary
run: pnpm lerna publish from-package --yes --pre-dist-tag canary
run: pnpm lerna publish from-package --yes --pre-dist-tag canary --provenance
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines +4 to +6
"@lerna-lite/cli": "^4.9.0",
"@lerna-lite/publish": "^4.9.0",
"@lerna-lite/version": "^4.9.0",
Copy link
Contributor Author

@cm-dyoshikawa cm-dyoshikawa Oct 17, 2025

Choose a reason for hiding this comment

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

アップデートで publish と version のパッケージが分離されたので、明示的にインストールが必要

@cm-dyoshikawa cm-dyoshikawa marked this pull request as ready for review October 17, 2025 08:10
@cm-dyoshikawa cm-dyoshikawa changed the title Node.js,pnpm,lerna-liteをアップデート Node.js,pnpm,lerna-liteをアップデート, パッケージのPublishにOIDC trusted Publishingを設定 Oct 17, 2025
Copy link
Member

@cm-wada-yusuke cm-wada-yusuke left a comment

Choose a reason for hiding this comment

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

LGTMです!内容変えずに、一度この状態ですべてのパッケージをビルド・リリースしたいですね

@cm-dyoshikawa cm-dyoshikawa merged commit 3b38807 into canary Oct 17, 2025
3 checks passed
@cm-wada-yusuke cm-wada-yusuke deleted the node-pnpm-update branch October 17, 2025 08:17
@cm-dyoshikawa cm-dyoshikawa mentioned this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 機能以外の改善

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants