NPM_TOKEN env var defined in your build environment on Pages?.npmrc.pages with //registry.npmjs.org/:_authToken=${NPM_TOKEN}, NPM_CONFIG_USERCONFIG = /opt/buildhome/repo/.npmrc.pages, and then a read-only token as NPM_TOKENyarn to install packages?npm.yarnrc I believe - you'll want to do a similar config for that if you're using yarnNPM_CONFIG_USERCONFIG equivalent is for yarn.yarnrc too - I doubt it's the same as the .npmrc oneNPM_TOKENNPM_TOKEN.npmrc.pages//registry.npmjs.org/:_authToken=${NPM_TOKEN}NPM_CONFIG_USERCONFIG = /opt/buildhome/repo/.npmrc.pages.yarnrc.yarnrcNPM_CONFIG_USERCONFIG.npmrc