File tree Expand file tree Collapse file tree 2 files changed +7
-25
lines changed Expand file tree Collapse file tree 2 files changed +7
-25
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ name: Release
3
3
on :
4
4
workflow_call :
5
5
secrets :
6
- NPM_USER :
7
- description : " repository NPM_USER secret passed on"
8
- required : false
9
- NPM_PASS :
10
- description : " repository NPM_PASS secret passed on"
6
+ VERDACCIO_AUTH_TOKEN :
11
7
required : false
12
8
inputs :
13
9
enterprise :
35
31
uses : actions/setup-node@v4
36
32
with :
37
33
node-version-file : ' .node-version'
38
-
39
- - name : Log into Verdaccio
40
- if : ${{ inputs.enterprise }}
41
- shell : bash
42
- run : |
43
- npm install -g npm-cli-login
44
- npm-cli-login -u "${{ secrets.NPM_USER }}" -p "${{ secrets.NPM_PASS }}" -e doesntmatter@example.com -r https://registrynpm.storefrontcloud.io
34
+ registry-url : ${{ inputs.enterprise && 'https://registrynpm.storefrontcloud.io' || '' }}
45
35
46
36
- name : Install dependencies
47
37
shell : bash
59
49
env :
60
50
# Needs access to push to main
61
51
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
- NPM_TOKEN : ${{ secrets.NPM_RELEASE_TOKEN }}
52
+ NPM_TOKEN : ${{ inputs.enterprise && secrets.VERDACCIO_AUTH_TOKEN || secrets.NPM_RELEASE_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ name: Continous Integration
3
3
on :
4
4
workflow_call :
5
5
secrets :
6
- NPM_USER :
7
- description : ' repository NPM_USER secret passed on'
8
- required : false
9
- NPM_PASS :
10
- description : ' repository NPM_PASS secret passed on'
6
+ VERDACCIO_AUTH_TOKEN :
11
7
required : false
12
8
13
9
inputs :
75
71
uses : actions/setup-node@v4
76
72
with :
77
73
node-version : ${{ matrix.node_version }}
74
+ registry-url : ${{ inputs.enterprise && 'https://registrynpm.storefrontcloud.io' || '' }}
78
75
79
76
- name : Get cache 🗄️
80
77
id : cache
@@ -83,17 +80,12 @@ jobs:
83
80
path : ' **/node_modules'
84
81
key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ matrix.node_version }}
85
82
86
- - name : Log into Verdaccio
87
- if : ${{ inputs.enterprise }}
88
- shell : bash
89
- run : |
90
- npm install -g npm-cli-login
91
- npm-cli-login -u "${{ secrets.NPM_USER }}" -p "${{ secrets.NPM_PASS }}" -e doesntmatter@example.com -r https://registrynpm.storefrontcloud.io
92
-
93
83
- name : Install dependencies (OS)
94
84
if : ${{ !steps.cache.outputs.cache-hit }}
95
85
shell : bash
96
86
run : yarn --frozen-lockfile
87
+ env :
88
+ NODE_AUTH_TOKEN : ${{ secrets.VERDACCIO_AUTH_TOKEN }}
97
89
98
90
- name : Detect circular dependencies 🔄
99
91
uses : vuestorefront/vue-storefront/actions/circular-dependencies@main
You can’t perform that action at this time.
0 commit comments