title: How to set environment variable in node.js process when deploying with github action
body: <p>I am trying to build an CI pipeline for my node.js server using github actions.</p>
  
  <p>I just need to solve one issue.
  I need to set environment variable, so that my node.js server can access the env variable via <code>process.env</code></p>
  
  <p>Below is the github action workflow file.</p>
  
  <pre><code>name: Build and Deploy to GKE
  
  on:
    pull_request:
      branches:
        - master
  
  # Environment variables available to all jobs and steps in this workflow
  env:
    ENGINE_API_KEY: ${{ secrets.ENGINE_API_KEY }}
  
  jobs:
    setup-build-publish-deploy:
      name: Setup, Build, Publish, and Deploy
      runs-on: ubuntu-latest
      steps:
        - name: Checkout
          uses: actions/checkout@v2
  
        - name: Apollo Schema Update
          env:
            ENGINE_API_KEY: ${{ secrets.ENGINE_API_KEY }}
          run: |
            sudo npm install
            sudo npm install -g apollo
            sudo npm run dev &amp;
            sleep 3
            sudo apollo service:push --serviceURL=http://auth-cluster-ip-service --serviceName=auth --tag=master --endpoint=http://localhost:3051
  
  </code></pre>
  
  <p>I have tried declaring environment variable both workflow level and job's level, but when I <code>console.log(process.env.ENGINE_API_KEY)</code>, it returns <code>undefined</code>.</p>
  
  <p>I also tried <code>ENGINE_API_KEY=$ENGINE_API_KEY npm run dev &amp;</code> instead of <code>npm run dev &amp;</code>. This works on my macbook, but with github action, it still returns <code>undefined</code>.</p>
  
  <p>(I did store ENGINE_API_KEY in settings -> secret. worked fine for other variables)</p>