chocolatey / choco-theme

The global theme for Chocolatey Software.
Apache License 2.0
8 stars 13 forks source link

Unable to publish choco-theme from GitHub workflow #400

Closed st3phhays closed 6 months ago

st3phhays commented 6 months ago

Checklist

What You Are Seeing?

With Yarn 4, some changes were needed to get the publishing of choco-theme workflow working. In the yarnrc.yml file, it was nessesary to add a field npmAuthToken: ${NODE_AUTH_TOKEN} to enable authentication and proper publishing to NPM.

These changes are having adverse effects though on repositories trying to build choco-theme. When installing a version of choco-theme with this change, the follow error is reported, and it fails.

Error: Environment variable not found (NODE_AUTH_TOKEN)

What is Expected?

We need to find a way for the GitHub workflow to run to publish choco-theme, while still allowing repositories that use it to build properly, even if they do not have this environment variable.

How Did You Get This To Happen?

  1. Install choco-theme on any repository with this command:

yarn up choco-theme@https://github.com/chocolatey/choco-theme#df03012a1828486653f19e0dc93540b8f0ecb30f

System Details

n/a

Installed Packages

choco-theme  commit #df03012a1828486653f19e0dc93540b8f0ecb30f

Output Log

Error: Environment variable not found (NODE_AUTH_TOKEN)

Additional Context

No response

st3phhays commented 6 months ago

A workaround for the moment is to remove this field from the yarnrc.yml and publish choco-theme manually with the CLI.