title: GitHub.com Actions - npm run build - debug.log
body: <p>I’ve got an Action which builds a React site. Works perfectly locally and similar code works in a different repo but wont build via this Action.</p>
  <p>I (think) I’ve narrowed it down to a single file but despite committing single lines at a time and having working elsewhere, I’m getting nowhere.</p>
  <p>The actions Build and Deploy step log includes:</p>
  <pre><code>npm ERR! A complete log of this run can be found in:
  
  npm ERR! /github/home/.npm/_logs/2021-07-05T20_48_03_994Z-debug.log
  
  ---End of Oryx build logs---
  Oryx has failed to build the solution.
  </code></pre>
  <p>Anybody know how to access the debug.log?</p>
  <p>Someone suggested I use actions/upload-artifact to try and upload the artifacts (and hopefully the logs) so I added this:</p>
  <pre><code> - name: Archive production logs
      uses: actions/upload-artifact@v2
      if: always()
      with:
        retention-days: 1
        path: |
          **
          !/home/runner/work/mysite/mysite/node_modules/**
  </code></pre>
  <p>** to get everything excluding node_modules which is huge</p>
  <p>Unfortunately, it still didn't include the log files which I assume is because they're in the Oryx container and I cant access them.</p>
  <p>I somehow found this article: <a href="https://github.com/microsoft/Oryx/issues/605" rel="nofollow noreferrer">https://github.com/microsoft/Oryx/issues/605</a>
  and added this bit to my workflow</p>
  <pre><code>    env:
        CI: false
  </code></pre>
  <p>which I believe means that warnings are not treated as errors</p>
  <p>TLDR
  How do you access the debug.log when using GitHub Actions?</p>