Skip to content

Commit 47d9dad

Browse files
authored
Merge pull request #4 from pior-labs/codex/fix-github-actions-ci-authentication
Fix GitHub Actions CI auth for GitHub Packages (pnpm)
2 parents 5e9686a + f0d7ed7 commit 47d9dad

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
permissions:
1010
contents: read
11+
packages: read
1112

1213
concurrency:
1314
group: deploy-static-dashboard
@@ -32,9 +33,13 @@ jobs:
3233
with:
3334
node-version: 22
3435
cache: pnpm
36+
registry-url: https://npm.pkg.github.com
37+
scope: "@pior-labs"
3538

3639
- name: Install dependencies
3740
run: pnpm install --frozen-lockfile
41+
env:
42+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3843

3944
- name: Build static files
4045
run: pnpm build

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
@pior-labs:registry=https://npm.pkg.github.com
2+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}

0 commit comments

Comments
 (0)