Not a big issue, but since latest release the .npmrc detection depends on process.env.HOME.
It broke our release (private repo with github private repositories). HOME was somehow changed in the previous step by our build scripts, thus .npmrc was wrongly recreated.
Workaround
To help if someone got hit.
- name: Create Release Pull Request or Publish to GPR
id: changesets
uses: changesets/action@v1.2.0
with:
publish: yarn release
env:
HOME: ${{ github.workspace }}
Fix
I would gladly send a fix (or a doc), but I'm not sure how process.env.HOME and the new cwd param should behave. Otherwise as I read that .npmrc related code will be deprecated / removed, just a note is fine
Not a big issue, but since latest release the
.npmrcdetection depends onprocess.env.HOME.It broke our release (private repo with github private repositories). HOME was somehow changed in the previous step by our build scripts, thus
.npmrcwas wrongly recreated.Workaround
To help if someone got hit.
Fix
I would gladly send a fix (or a doc), but I'm not sure how
process.env.HOMEand the newcwdparam should behave. Otherwise as I read that.npmrcrelated code will be deprecated / removed, just a note is fine