yarn build failed on GitHub Actions
name: code build on: push: branches: [ dev ] jobs: code-build: runs-on: ubuntu-latest permissions: contents: write steps: – uses: actions/checkout@v4 with: token: ${{ secrets.GHCR_TOKEN }} # location check – name: where now? run: pwd # location check – name: list check? run: ls #yarn install & build – name: Set up Node.js uses: actions/setup-node@master with: […]
yarn build on github action yaml failed
name: code build on: push: branches: [ dev ] jobs: code-build: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 with: token: ${{ secrets.GHCR_TOKEN }} # location check - name: where now? run: pwd # location check - name: list check? run: ls #yarn install & build - name: Set up Node.js uses: actions/setup-node@master with: node-version: 19.8.1 # location check - name: install run: | rm -rf /build yarn cache clean yarn install # location check - name: install check run: | ls ls node_modules pwd ls -al yarn add @babel/plugin-proposal-private-property-in-object --dev # node install&build - name: Run install # working-directory: ${{ github.workspace }} run: | mkdir build pwd ls yarn build
is it possible to update a version in a preinstalled ubuntu-latest image in github actions?
ubuntu-latest
runner in github actions by default have yarn 1
according to their docs and I would like to override that to yarn 4, is this even possible ? If yes, is there a path
I should look up to update this?