Skip to content

Validate NPM token before creating a release#56501

Closed
cipolleschi wants to merge 1 commit into
react:mainfrom
cipolleschi:export-D101377190
Closed

Validate NPM token before creating a release#56501
cipolleschi wants to merge 1 commit into
react:mainfrom
cipolleschi:export-D101377190

Conversation

@cipolleschi

@cipolleschi cipolleschi commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary:
Add an early NPM token validation step to the create-release workflow.
This runs npm whoami right after checkout to fail fast if the token is
expired or invalid, avoiding wasted CI time on a release that would fail
at the publish step.

The step gracefully skips when no token is present (e.g. fork PRs).

Reviewed By: christophpurrer

Differential Revision: D101377190

Changelog:

[Internal] -

Summary:
Add an early NPM token validation step to the create-release workflow.
This runs `npm whoami` right after checkout to fail fast if the token is
expired or invalid, avoiding wasted CI time on a release that would fail
at the publish step.

The step gracefully skips when no token is present (e.g. fork PRs).

Reviewed By: christophpurrer

Differential Revision: D101377190
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 20, 2026
@meta-codesync

meta-codesync Bot commented Apr 20, 2026

Copy link
Copy Markdown

@cipolleschi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D101377190.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cipolleschi in 0223364

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Apr 20, 2026
@meta-codesync

meta-codesync Bot commented Apr 20, 2026

Copy link
Copy Markdown

This pull request has been merged in 0223364.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants