Yarn install from gitlab package registry not working with instance-level

same here!
tried both
.yarnrc

"@scope:registry" "https://gitlab.com/api/v4/packages/npm/"
"//gitlab.com/api/v4/packages/npm/:_authToken" "${NPM_TOKEN}"

and .yarnrc.yml

npmScopes:
  scope:
    npmRegistryServer: 'https://gitlab.com/api/v4/packages/npm/'
​
npmRegistries:
  //gitlab.com/api/v4/packages/npm/:
    npmAlwaysAuth: true
    npmAuthToken: ${NPM_TOKEN}

yet npm works with .npmrc with same values