Skip to content

Conversation

@rak-phillip
Copy link
Member

Summary

This updates the Rancher Icons release to use trusted providers instead of the npm token.

Occurred changes and/or fixed issues

  • Update Rancher Icons releases to use trusted providers

Technical notes summary

See the trusted publishing docs on npm1. This is now the preferred approach to publishing packages.

This work is part of a larger effort to move away from tokens. See prior Dashboard work:

rancher/dashboard#16157
rancher/dashboard#16166

Areas or cases that should be tested

After merge, release a new version of Rancher Icons.

Areas which could experience regressions

Publishing Rancher Icons.

Screenshot/Video

NA

Footnotes

  1. https://docs.npmjs.com/trusted-publishers

@rak-phillip rak-phillip requested a review from nwmac December 12, 2025 21:46
uses: actions/setup-node@v4
with:
node-version: '14.x'
node-version: '20'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to test to confirm that this works with node 20.

fi

# Publish to npm if a node auth token is set in the environment
if [ -n "${NODE_AUTH_TOKEN}" ]; then
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why we originally had this conditional clause for publishing. We might need to do some debugging to find the proper environment variable for the trusted publishing method if we need this back.

@rak-phillip rak-phillip self-assigned this Dec 12, 2025
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.

1 participant