GitHub Actions scenarios to upload artifacts due to 'No such file or directory' scenarios on macOS
I'm wondering if anyone has experience with After trying multiple solutions online, I still can't figure this out. I'm trying to set up a GitHub Actions workflow to build my Node.js application and upload the build artifacts. The workflow runs fine, but I keep working with a 'No such file or directory' behavior when the action tries to upload the artifacts. Hereβs the relevant snippet from my `main.yml` file: ```yaml name: Build and Upload on: push: branches: - main jobs: build: runs-on: macos-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Install dependencies run: npm install - name: Build application run: npm run build - name: Upload artifacts uses: actions/upload-artifact@v2 with: name: build-output path: ./dist ``` The directory structure looks like this: ``` /my-project βββ .github β βββ workflows β βββ main.yml βββ dist β βββ index.js βββ package.json ``` When I check the logs, I see this behavior: ``` behavior: No such file or directory: './dist' ``` I've confirmed that the `dist` folder is created during the build step, and I can see it in the workspace after the build process. I've also tried using absolute paths instead of relative paths, but that didnβt help either. My `npm run build` command works locally, and Iβm using Node.js version 16.x in my workflow. Could this be a timing scenario, or is there something in my workflow configuration that Iβm missing? Any advice would be appreciated! This is part of a larger API I'm building. What am I doing wrong? I'm using Yaml 3.10 in this project.