Skip to content

Commit 7586ed4

Browse files
committed
Add packages:read to Pages Action
1 parent 34b39c7 commit 7586ed4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions:
99
contents: read
1010
pages: write
1111
id-token: write
12+
packages: read
1213

1314
concurrency:
1415
group: "pages"
@@ -26,6 +27,11 @@ jobs:
2627
with:
2728
node-version: 22
2829

30+
- name: Configure npm for GitHub Packages
31+
run: |
32+
echo "@raspberrypifoundation:registry=https://npm.pkg.github.com" >> ~/.npmrc
33+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
34+
2935
- name: Install dependencies
3036
working-directory: docs
3137
run: npm ci

0 commit comments

Comments
 (0)