Skip to content

Change github-actions config from ./ (root dir) to ./app/ #25131

Answered by BrightRan
omqmo asked this question in Actions
Discussion options

You must be logged in to vote

@omqmo ,

Thanks for your reply and sharing your repository.

On the command steps in the job, you can use  working-directory  keyword to specify the working directory of where to run the commands. And for the action steps, you just need to change the path as the relative path to the app directory.

For example, you can try the below configurations:

jobs:
  deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
  - name: Setup Node
    uses: actions/setup-node@v1
    with:
      node-version: '12.x'

  - name: Cache dependencies
    uses: actions/cache@v1
    with:
      path: ~/.npm
      key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
      rest…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants