Skip to content

Commit

Permalink
try to fix build issue by using cd instead of --prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel van Hintum committed Jul 18, 2024
1 parent e0b039a commit 2c4b4ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-to-do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
cache: "npm"
cache-dependency-path: "./app/package-lock.json"
- run: |
npm ci --include=dev --prefix ./app
npm run build --prefix ./app
npm prune --omit=dev --prefix ./app
cd ./app
npm ci --include=dev
npm run build
npm prune --omit=dev
cd ..
- run: |
docker build -t $IMAGE ./app
docker push $IMAGE
Expand Down
8 changes: 5 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ runs:
env:
APP_IMAGE: registry.digitalocean.com/${{ github.repository }}:app-${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}
run: |
npm ci --include=dev --prefix ./app
npm run build --prefix ./app
npm prune --omit=dev --prefix ./app
cd ./app
npm ci --include=dev
npm run build
npm prune --omit=dev
cd ..
docker build -t $APP_IMAGE ./app
docker push $APP_IMAGE
Expand Down

0 comments on commit 2c4b4ee

Please sign in to comment.