Skip to content

Commit 66e70cf

Browse files
Legger til npmrc for å spesifisere at vi bruker custom registry for navikt. Forsøker å sette npm auth token for å autentisere app mot npm
1 parent 725b013 commit 66e70cf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/deploy-dev.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and deploy
1+
name: Build and deploy Dev
22
on: [workflow_dispatch]
33
jobs:
44
build_and_deploy:
@@ -12,6 +12,15 @@ jobs:
1212
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # ratchet:actions/checkout@v4
1313
with:
1414
fetch-depth: 0 # Fetch all history for what-changed action
15+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: "npm"
19+
registry-url: "https://npm.pkg.github.com"
20+
- name: Install npm dependencies
21+
env:
22+
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
23+
run: npm ci
1524
- name: Determine what to do
1625
id: changed-files
1726
uses: "nais/what-changed@bc3dad0463b36ad29044134bba5898f0af73c34c" # ratchet:nais/what-changed@main

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@navikt:registry=https://npm.pkg.github.com

0 commit comments

Comments
 (0)