Skip to content

ci: publish package using npm trusted publisher with OIDC#1319

Merged
pedro-martins-brisa merged 5 commits intomainfrom
migrate-to-trusted-publishers-and-session-based-auth
Jan 22, 2026
Merged

ci: publish package using npm trusted publisher with OIDC#1319
pedro-martins-brisa merged 5 commits intomainfrom
migrate-to-trusted-publishers-and-session-based-auth

Conversation

@pedro-martins-brisa
Copy link
Member

@pedro-martins-brisa pedro-martins-brisa commented Jan 9, 2026

Description

This pull request updates the release workflow to clearly separate the build and publish steps using different Node versions.

The project build remains on Node 12.22.1 to preserve compatibility with legacy dependencies, while the npm publish step is migrated to Node 20, which is required to properly support modern npm features such as OIDC authentication and provenance (--provenance).

This change improves the security and reliability of the release process without impacting the existing build behavior.

Compliance

  • I have verified that this change complies with our code and contribution policies.
  • I have verified that this change does not cause regressions and does not affect other parts of the code.

References

  • GitHub Actions – setup-node documentation
  • npm documentation – Provenance and OIDC publishing

@pedro-martins-brisa pedro-martins-brisa self-assigned this Jan 9, 2026
@pedro-martins-brisa pedro-martins-brisa merged commit 59ac0e6 into main Jan 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants