Skip to content

Commit cc5a7c4

Browse files
committed
add github @dialpad:registry config
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
1 parent e986b4b commit cc5a7c4

File tree

12 files changed

+83
-8
lines changed

12 files changed

+83
-8
lines changed

.github/workflows/a11y_tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ jobs:
8181
restore-keys: |
8282
${{ runner.os }}-pnpm-store-
8383
84+
- name: Set @dialpad registry to GitHub packages
85+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
86+
87+
- name: Set GitHub auth token
88+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
89+
8490
- name: Install dependencies
8591
run: pnpm install --frozen-lockfile
8692

@@ -122,6 +128,12 @@ jobs:
122128
restore-keys: |
123129
${{ runner.os }}-pnpm-store-
124130
131+
- name: Set @dialpad registry to GitHub packages
132+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
133+
134+
- name: Set GitHub auth token
135+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
136+
125137
- name: Install dependencies
126138
run: pnpm install --frozen-lockfile
127139

.github/workflows/deploy-preview.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ jobs:
8282
restore-keys: |
8383
${{ runner.os }}-pnpm-store-
8484
85+
- name: Set @dialpad registry to GitHub packages
86+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
87+
88+
- name: Set GitHub auth token
89+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
90+
8591
- name: Install dependencies
8692
run: pnpm install --frozen-lockfile
8793

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ jobs:
109109
restore-keys: |
110110
${{ runner.os }}-pnpm-store-
111111
112+
- name: Set @dialpad registry to GitHub packages
113+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
114+
115+
- name: Set GitHub auth token
116+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
117+
112118
- name: Install dependencies
113119
run: pnpm install --frozen-lockfile
114120

.github/workflows/lint-pr.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
restore-keys: |
3939
${{ runner.os }}-pnpm-store-
4040
41+
- name: Set @dialpad registry to GitHub packages
42+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
43+
44+
- name: Set GitHub auth token
45+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
46+
4147
- name: Install dependencies
4248
run: pnpm install --frozen-lockfile
4349

.github/workflows/publish-android.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ jobs:
9797
restore-keys: |
9898
${{ runner.os }}-pnpm-store-
9999
100+
- name: Set @dialpad registry to GitHub packages
101+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
102+
103+
- name: Set GitHub auth token
104+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
105+
100106
- name: Install dependencies
101107
run: pnpm install --frozen-lockfile
102108

.github/workflows/publish-ios.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
restore-keys: |
5454
${{ runner.os }}-pnpm-store-
5555
56+
- name: Set @dialpad registry to GitHub packages
57+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
58+
59+
- name: Set GitHub auth token
60+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
61+
5662
- name: Install dependencies
5763
run: pnpm install --frozen-lockfile
5864

.github/workflows/publish-web.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,20 @@ jobs:
135135
restore-keys: |
136136
${{ runner.os }}-pnpm-store-
137137
138+
- name: Set @dialpad registry to GitHub packages
139+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
140+
141+
- name: Set auth tokens
142+
run: |
143+
pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
144+
pnpm config set //registry.npmjs.org/:_authToken=${{ secrets.DIALTONE_NPM_TOKEN }}
145+
138146
- name: Install dependencies
139147
run: pnpm install --frozen-lockfile
140148

141-
- name: Set registry to GitHub packages
142-
if: matrix.registry == 'GitHub'
143-
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
144-
145-
- name: Set ${{ matrix.registry }} auth token
146-
env:
147-
AUTH_TOKEN: ${{ matrix.registry == 'GitHub' && env.GITHUB_TOKEN || secrets.DIALTONE_NPM_TOKEN }}
148-
run: pnpm config set ${{ matrix.registry_url }}:_authToken=${{ env.AUTH_TOKEN }}
149+
- name: Remove GitHub registry if publishing to npm
150+
if: matrix.registry == 'npm'
151+
run: pnpm config delete @dialpad:registry
149152

150153
# Publish npm/GitHub
151154
- name: Publish ${{ matrix.package }}@${{ env.RELEASE_TAG }}

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ jobs:
9393
restore-keys: |
9494
${{ runner.os }}-pnpm-store-
9595
96+
- name: Set @dialpad registry to GitHub packages
97+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
98+
99+
- name: Set GitHub auth token
100+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
101+
96102
- name: Install dependencies
97103
run: pnpm install --frozen-lockfile
98104

.github/workflows/sync-figma-to-tokens.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ jobs:
4141
restore-keys: |
4242
${{ runner.os }}-pnpm-store-
4343
44+
- name: Set @dialpad registry to GitHub packages
45+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
46+
47+
- name: Set GitHub auth token
48+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
49+
4450
- name: Install dependencies
4551
run: pnpm install --frozen-lockfile
4652

.github/workflows/sync-tokens-to-figma.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ jobs:
3737
restore-keys: |
3838
${{ runner.os }}-pnpm-store-
3939
40+
- name: Set @dialpad registry to GitHub packages
41+
run: pnpm config set @dialpad:registry https://npm.pkg.github.com
42+
43+
- name: Set GitHub auth token
44+
run: pnpm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
45+
4046
- name: Install dependencies
4147
run: pnpm install --frozen-lockfile
4248

0 commit comments

Comments
 (0)