-
Notifications
You must be signed in to change notification settings - Fork 2
ci: trusted publishing #504
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 |
|---|---|---|
|
|
@@ -26,6 +26,10 @@ jobs: | |
|
|
||
| - uses: jdx/mise-action@v2 | ||
|
|
||
| # npm 11.5.1 or later is required for trusted publishing | ||
| - name: Update npm | ||
| run: npm install -g npm@latest | ||
|
|
||
| - name: Fix executable files for changesets | ||
| run: | | ||
| chmod -x .husky/commit-msg | ||
|
|
@@ -43,4 +47,5 @@ jobs: | |
| commitMode: github-api | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| # Use OIDC for npm authentication instead of NPM_TOKEN | ||
| NPM_TOKEN: "" # https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868 | ||
|
Comment on lines
+50
to
+51
|
||
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.
The comment mentions npm version 11.5.1 as the requirement, but the installation command uses
npm@latest. This could potentially install a future version with breaking changes or regressions. Consider pinning to a specific minimum version that's known to work (e.g.,npm@11.5.1ornpm@^11.5.1) to ensure reproducible builds and avoid unexpected issues from future npm releases.