Answer the question
In order to leave comments, you need to log in
How to correctly specify the directory to run the command in the github actions file?
Windows 10 system
I need to make it so that when I push the code to github, I run the npm run build command in the root of the project (that is, to build the project)
I use github actions and made a yml file to build the whole thing, but I get The directory name is
invalid error
The project is located in this path: D:/VUE Projects/Glinka/glinka-frontend
yaml file:
name: Deploy to VPS
on: push
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Build folder for production on local machine
working-directory: ./glinka-frontend
run: npm run build
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question