Skip to content

Commit 2aded30

Browse files
SD-10: Add NPM_TOKEN to stage deployment - fixed
1 parent d7a7773 commit 2aded30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/actions/build-and-push/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,14 @@ runs:
6464
with:
6565
node-version: ${{ inputs.node-version }}
6666

67-
- name: Clean install
67+
- name: Set NPM_TOKEN
6868
env:
6969
NPM_TOKEN: ${{ inputs.npm-token }}
7070
shell: bash
71+
run: npm config set '//registry.npmjs.org/:_authToken' "${{ env.NPM_TOKEN }}"
72+
73+
- name: Clean install
74+
shell: bash
7175
run: npm ci
7276

7377
- name: Build an app

0 commit comments

Comments
 (0)