-
Notifications
You must be signed in to change notification settings - Fork 9
fix: Use NPM OIDC #1150
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
base: main
Are you sure you want to change the base?
fix: Use NPM OIDC #1150
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
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.
Pull Request Overview
Switches publication flow to rely on (implied) npm OIDC by removing manual OTP handling and token secret injection. Key changes simplify the publish script and workflow but also remove explicit authentication validation.
- Removed OTP argument parsing, auth wrapper function, and auth presence check in npm-safe-publish.sh
- Replaced npm_authenticated call with direct npm publish
- Cleared NODE_AUTH_TOKEN secret mapping in release workflow
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
scripts/npm-safe-publish.sh | Removes OTP/token handling and publishes directly with npm |
.github/workflows/release.yml | Removes NODE_AUTH_TOKEN secret mapping (empty secrets_map) |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
while (( "$#" )); do | ||
case "$1" in | ||
--otp=*) | ||
OTP="${1#*=}" | ||
shift | ||
;; | ||
--dry-run) | ||
DRY_RUN="true" | ||
echo "Dry run enabled. Not pushing to NPM." |
Copilot
AI
Oct 17, 2025
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.
Removal of the previously supported --otp=... argument is a breaking CLI change; existing automation invoking the script with --otp= will now fail as an unknown argument. Consider retaining a no-op handler for --otp (emitting a deprecation warning) to preserve backward compatibility, e.g.: case --otp=* ) echo 'Warning: --otp deprecated; OIDC in use.' ;;
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
1747066
to
916fa58
Compare
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.
Pull Request Overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
No description provided.