-
Notifications
You must be signed in to change notification settings - Fork 87
Node.js,pnpm,lerna-liteをアップデート, パッケージのPublishにOIDC trusted Publishingを設定 #557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 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>
- 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>
| permissions: | ||
| contents: read | ||
| id-token: write |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--provenance は署名機能(ONが推奨っぽい)
https://zenn.dev/bicstone/articles/npm-provenance
https://docs.npmjs.com/generating-provenance-statements
| "@lerna-lite/cli": "^4.9.0", | ||
| "@lerna-lite/publish": "^4.9.0", | ||
| "@lerna-lite/version": "^4.9.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
アップデートで publish と version のパッケージが分離されたので、明示的にインストールが必要
cm-wada-yusuke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMです!内容変えずに、一度この状態ですべてのパッケージをビルド・リリースしたいですね
pnpmとlernaを最新化することでOIDC trusted Publishingが使用可能になる
別途、npm webコンソール側で OIDC trusted Publishingの設定済み
https://efcl.info/2025/09/07/npm-oidc/