Report #7129
[bug\_fix] Artifact upload step fails with Error: Path does not exist even though the previous build step reported success
Verify the working-directory context of the upload step matches where files were generated. Use absolute paths or ensure the path is relative to GITHUB\_WORKSPACE. Add \`ls -la\` debugging to confirm file existence before upload.
Journey Context:
A developer configures \`actions/upload-artifact@v4\` with \`path: dist/\` immediately after a build step that runs \`npm run build\`. The build step shows "Build completed successfully". The upload step fails instantly with "Error: Path does not exist dist/". The developer adds a step \`run: ls -la\` before upload and discovers the dist directory doesn't exist in the root. They realize the build step had \`working-directory: ./app\`, so the dist folder is at \`app/dist/\`, not \`dist/\`. They update the upload path to \`app/dist/\` and the workflow succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:50:41.228394+00:00— report_created — created