You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-usage.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -401,11 +401,14 @@ steps:
401
401
yarn config set npmScopes.my-org.npmAlwaysAuth true
402
402
yarn config set npmScopes.my-org.npmAuthToken $NPM_AUTH_TOKEN
403
403
env:
404
-
NPM_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}
404
+
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
405
405
- name: Install dependencies
406
406
run: yarn install --immutable
407
407
```
408
-
NOTE: As per https://github.com/actions/setup-node/issues/49 you cannot use `secrets.GITHUB_TOKEN` to access private GitHub Packages within the same organisation but in a different repository.
408
+
409
+
To access private GitHub Packages within the same organization, go to "Manage Actions access" in Package settings and set the repositories you want to access.
410
+
411
+
Please refer to the [Ensuring workflow access to your package - Configuring a package's access control and visibility](https://docs.github.com/en/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#ensuring-workflow-access-to-your-package) for more details.
409
412
410
413
### always-auth input
411
414
The always-auth input sets `always-auth=true` in .npmrc file. With this option set [npm](https://docs.npmjs.com/cli/v6/using-npm/config#always-auth)/yarn sends the authentication credentials when making a request to the registries.
0 commit comments