Skip to content

Commit b6d92ac

Browse files
maximizeITGitHub Copilot
andcommitted
fix(ci): add packages: read permission and GITHUB_TOKEN fallback for npm.pkg.github.com auth
widget-sdk 3.18.0 is published on GitHub Packages (npm.pkg.github.com) unlike 3.17.0 which was on the public npm registry. CI needs read:packages permission to download it. Add explicit packages: read permission to the job and fall back to GITHUB_TOKEN when STAFFBOT_NPM_READ is unavailable. Co-authored-by: GitHub Copilot <copilot@noreply.github.com>
1 parent e4e9e59 commit b6d92ac

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
executing-tests:
1111
runs-on: ubuntu-22.04
1212

13+
permissions:
14+
contents: read
15+
packages: read
16+
1317
steps:
1418
- name: Checkout repository
1519
uses: actions/checkout@v6
@@ -27,7 +31,7 @@ jobs:
2731
working-directory: samples/weather-forecast
2832
run: yarn install --frozen-lockfile
2933
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.STAFFBOT_NPM_READ }}
34+
NODE_AUTH_TOKEN: ${{ secrets.STAFFBOT_NPM_READ || secrets.GITHUB_TOKEN }}
3135

3236
- name: Run Build
3337
working-directory: samples/weather-forecast

0 commit comments

Comments
 (0)