Skip to content

Commit 293fcba

Browse files
committed
build(ci): add github registry config
Signed-off-by: Ruben Romero Montes <[email protected]>
1 parent 5c0ad31 commit 293fcba

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/pr.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
with:
2929
node-version: ${{ matrix.node }}
3030
cache: npm
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Create .npmrc
35+
run: |
36+
echo "@trustification:registry=https://npm.pkg.github.com" > .npmrc
3137
3238
- name: Enable Corepack
3339
run: corepack enable

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
node-version: 18
4141
cache: npm
4242
registry-url: 'https://npm.pkg.github.com'
43+
env:
44+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Create .npmrc
47+
run: |
48+
echo "@trustification:registry=https://npm.pkg.github.com" > .npmrc
4349
4450
- name: Configure git
4551
run: |

.github/workflows/stage.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ jobs:
4444
node-version: 18
4545
cache: npm
4646
registry-url: 'https://npm.pkg.github.com'
47+
env:
48+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
50+
- name: Create .npmrc
51+
run: |
52+
echo "@trustification:registry=https://npm.pkg.github.com" > .npmrc
4753
4854
- name: Enable Corepack
4955
run: corepack enable

0 commit comments

Comments
 (0)