File tree Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 42
42
cache-dependency-path : " ${{ github.workspace }}/src/github.com/tektoncd/dashboard/go.sum"
43
43
go-version-file : " ${{ github.workspace }}/src/github.com/tektoncd/dashboard/go.mod"
44
44
45
- - name : Set up Node.js
46
- uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
47
- with :
48
- cache : npm
49
- cache-dependency-path : src/github.com/tektoncd/dashboard/package-lock.json
50
- node-version-file : src/github.com/tektoncd/dashboard/.nvmrc
51
- registry-url : ' https://registry.npmjs.org/'
52
-
53
45
- name : Install dependencies
54
46
run : |
55
47
echo "${GOPATH}/bin" >> "$GITHUB_PATH"
80
72
- name : Set up Node.js
81
73
uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
82
74
with :
83
- cache : npm
75
+ # cache: npm
84
76
node-version-file : .nvmrc
85
77
registry-url : ' https://registry.npmjs.org/'
86
78
Original file line number Diff line number Diff line change @@ -83,12 +83,27 @@ function get_node() {
83
83
function node_npm_install() {
84
84
local failed=0
85
85
get_node
86
- echo " Configuring npm"
87
- mkdir ~ /.npm-global
88
- npm config set prefix ' ~/.npm-global'
89
- export PATH=$PATH :$HOME /.npm-global/bin
86
+ # echo "Configuring npm"
87
+ # set -x
88
+ # mkdir ~/.npm-global
89
+ # echo "Get npm cache location"
90
+ # npm config get cache
91
+ # echo "Set npm prefix"
92
+ # npm config set prefix '~/.npm-global'
93
+ # echo "Get npm cache location"
94
+ # npm config get cache
95
+ # export PATH=$PATH:$HOME/.npm-global/bin
96
+ # set +x
90
97
echo " Installing package dependencies"
91
98
npm ci || failed=1 # similar to `npm install` but ensures all versions from lock file
99
+ echo " Checking cache"
100
+ set -x
101
+ NPM_CACHE_DIR=$( npm config get cache)
102
+ echo $NPM_CACHE_DIR
103
+ ls $NPM_CACHE_DIR
104
+ du -sh $NPM_CACHE_DIR
105
+ npm config get prefix
106
+ set +x
92
107
return ${failed}
93
108
}
94
109
You can’t perform that action at this time.
0 commit comments