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
I want to yarn build
but it failed with:
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
1