-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,19 +14,22 @@ jobs: | |
| publish: | ||
| name: Publish | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 9 | ||
| version: 10 | ||
|
|
||
| - name: Setup node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| cache: 'pnpm' | ||
| node-version: 18 | ||
| node-version: 24 | ||
| registry-url: 'https://registry.npmjs.org' | ||
|
|
||
| - name: ビルド時に使用する環境変数を設定 | ||
|
|
@@ -72,7 +75,6 @@ jobs: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - 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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
https://zenn.dev/bicstone/articles/npm-provenance |
||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| { | ||
| "private": true, | ||
| "devDependencies": { | ||
| "@lerna-lite/cli": "^1.15.1", | ||
| "@lerna-lite/cli": "^4.9.0", | ||
| "@lerna-lite/publish": "^4.9.0", | ||
| "@lerna-lite/version": "^4.9.0", | ||
|
Comment on lines
+4
to
+6
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. アップデートで publish と version のパッケージが分離されたので、明示的にインストールが必要 |
||
| "@secretlint/secretlint-rule-preset-recommend": "^11.2.5", | ||
| "npm-run-all": "^4.1.5", | ||
| "prettier": "^3.3.3", | ||
|
|
@@ -37,7 +39,7 @@ | |
| "engines": { | ||
| "npm": "use pnpm please!", | ||
| "yarn": "use pnpm please!", | ||
| "pnpm": ">=9 <10" | ||
| "pnpm": ">=10 <11" | ||
| }, | ||
| "simple-git-hooks": { | ||
| "pre-commit": "pnpm secretlint" | ||
|
|
||
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.
OIDC Trusted Publishingで必要な設定
https://github.com/lerna-lite/lerna-lite/tree/main/packages/publish#oidc
https://github.com/lerna-lite-test/oidc/blob/main/.github/workflows/release.yml