File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
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"
Original file line number Diff line number Diff line change @@ -83,10 +83,17 @@ 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
92
99
return ${failed}
You can’t perform that action at this time.
0 commit comments