Skip to content

Commit 698d505

Browse files
authored
Fix description about ensuring workflow access to private package (#704)
1 parent 869f4dd commit 698d505

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: docs/advanced-usage.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,14 @@ steps:
401401
yarn config set npmScopes.my-org.npmAlwaysAuth true
402402
yarn config set npmScopes.my-org.npmAuthToken $NPM_AUTH_TOKEN
403403
env:
404-
NPM_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}
404+
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
405405
- name: Install dependencies
406406
run: yarn install --immutable
407407
```
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.
409412

410413
### always-auth input
411414
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

Comments
 (0)