File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ jobs:
278278
279279 no-warnings-and-make-assets :
280280 name : " React Code Has No Warnings & is Prettified, then Make Assets"
281- runs-on : ${{ matrix.os }}
281+ runs-on : self-hosted
282282 strategy :
283283 matrix :
284284 go-version : [ 1.18.x, 1.19.x ]
@@ -330,6 +330,20 @@ jobs:
330330 working-directory : ./portal-ui
331331 continue-on-error : false
332332 run : |
333+
334+ # Install yarn on self-hosted runner due to:
335+ # https://github.com/actions/setup-node/issues/182
336+ apt remove -y nodejs || true
337+ curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
338+ apt-get install -y nodejs
339+ apt remove -y cmdtest
340+ apt remove -y yarn
341+ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
342+ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
343+ apt-get update
344+ apt-get install -y yarn
345+
346+ echo "yarn install"
333347 yarn install
334348 - name : Check for Warnings in build output
335349 working-directory : ./portal-ui
You can’t perform that action at this time.
0 commit comments