[X] I have verified this is the correct repository for opening this issue.
[X] I have verified no other issues exist related to my problem.
[X] I have verified this is not an issue for a specific package.
[X] I have verified this issue is not security related.
[X] I confirm I am using official, and not unofficial, or modified, Chocolatey products.
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[22m[39m: 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?
Install choco-theme on any repository with this command:
yarn up choco-theme@https://github.com/chocolatey/choco-theme#df03012a1828486653f19e0dc93540b8f0ecb30f
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 fieldnpmAuthToken: ${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.
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?
yarn up choco-theme@https://github.com/chocolatey/choco-theme#df03012a1828486653f19e0dc93540b8f0ecb30f
System Details
n/a
Installed Packages
Output Log
Additional Context
No response