Skip to content

Conversation

@spawnia
Copy link
Member

@spawnia spawnia commented Nov 3, 2025

Summary

This PR migrates the npm publishing workflow from NPM_TOKEN-based authentication to OIDC (OpenID Connect) authentication, following the pattern established in mll-lab/react-components#309.

Changes

  • GitHub Actions: Updated checkout to v5 and setup-node to v6
  • Node.js: Standardized to version 22
  • OIDC Permissions: Added required permissions (contents: write, issues: write, pull-requests: write, id-token: write)
  • NPM Authentication: Removed NPM_TOKEN environment variable (now using OIDC)
  • Dependencies:
    • Updated semantic-release from ^23.0.0 to ^25.0.1
    • Updated yarn from 4.1.0 to 4.10.3
  • Package Configuration: Added publishConfig with provenance: true for trusted publishing

Benefits

  • More secure authentication using OIDC instead of long-lived tokens
  • Enhanced package provenance and transparency
  • Aligned with modern npm publishing best practices

Testing

  • ✅ Validation tests pass locally
  • ✅ Dependencies updated successfully

Closes: https://mlllab.atlassian.net/browse/PFE-56

🤖 Generated with Claude Code

- Update GitHub Actions checkout to v5 and setup-node to v6
- Add OIDC permissions (contents, issues, pull-requests, id-token)
- Remove NPM_TOKEN environment variable (now using OIDC)
- Standardize Node.js version to 22
- Update semantic-release to ^25.0.1
- Update yarn to 4.10.3
- Add publishConfig with provenance: true

Follows the pattern from react-components migration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@spawnia spawnia requested a review from simbig November 3, 2025 16:42
@spawnia spawnia merged commit c70d013 into master Nov 4, 2025
1 check passed
@spawnia spawnia deleted the feature/pfe-56-migrate-to-oidc branch November 4, 2025 07:01
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Development

Successfully merging this pull request may close these issues.

3 participants