Skip to content

Commit

Permalink
workflow updated after comment from a maintainer: nuxt-hub/core#395 (…
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii Chernenko committed Dec 16, 2024
1 parent b50b404 commit 6f4077f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,10 @@ jobs:

- name: Install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm install

- name: Build app
run: npm run build
run: npm ci

- name: Deploy with nuxthub
working-directory: ./src/apps/app
run: npx nuxthub deploy --no-build
run: npx nuxthub deploy src/apps/app
env:
NUXT_HUB_PROJECT_KEY: ${{ secrets.NUXT_HUB_PROJECT_KEY }}
NUXT_HUB_USER_TOKEN: ${{ secrets.NUXT_HUB_USER_TOKEN }}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
"scripts": {
"cleanup": "rm -rf package-lock.json src/layers/ui/node_modules src/apps/app/node_modules",
"dev": "npm run dev --workspace @demo/app",
"build": "npm run build --workspace src/layers/* && npm run build --workspace @demo/app"
"postinstall": "npm run dev:prepare --workspace src/layers/*"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.28.1"
"@rollup/rollup-linux-x64-gnu": "4.28.1",
"nuxthub": "^0.7.6"
}
}

0 comments on commit 6f4077f

Please # to comment.