title: Install a package from private registry using yarn
body: <p>I am trying to install a private package from the GitHub registry. It works fine with npm but throws a 401 (Unauthorized) when I use yarn to install the same package. I have used .npmrc file for configuring the repository and below is the content of the file,</p>
  <pre><code>@Qualifier:registry=https://npm.pkg.github.com
  //npm.pkg.github.com/:_authToken=GITHUB_TOKEN
  </code></pre>
  <p>GITHUB_TOKEN is a PAT (personal access token) generated in GITHUB. The same token is used while creating the package using GitHub actions as below,</p>
  <pre><code>env:
    NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  </code></pre>