I have published an npm package to the bitbucket npm package repo using a pipeline. The pipeline auth's using the BITBUCKET_PACKAGES_USERNAME and BITBUCKET_PACKAGES_TOKEN and successfully publishes the npm package to bitbucket packages.
I would now like to install the published package as part of a build step in a bitbucket pipeline of another repo (in the same bitbucket workspace). I have tried to auth using BITBUCKET_PACKAGES_USERNAME and BITBUCKET_PACKAGES_TOKEN variables but the package is not accessible.
How can I give the pipeline access to packages that aren't linked to it's repository?