Skip to content

Commit

Permalink
Fix: Reverse to use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzrmzia committed Aug 23, 2024
1 parent e291069 commit f033d61
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,30 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
cache: 'yarn'

- name: Get yarn cache directory
id: yarn-cache-dir
run: echo "YARN_CACHE_FOLDER=$(yarn cache dir)" >> $GITHUB_ENV

- uses: actions/cache@v4
name: Setup pnpm cache
name: Setup yarn cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.YARN_CACHE_FOLDER }}
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
${{ runner.os }}-yarn-cache-
- name: Install dependencies
run: pnpm install
run: yarn install

- name: Deploy with nuxthub
- name: Deploy with nuxthub
run: npx nuxthub deploy
env:
NUXT_HUB_PROJECT_KEY: ${{ secrets.NUXT_HUB_PROJECT_KEY}}
NUXT_HUB_PROJECT_KEY: ${{ secrets.NUXT_HUB_PROJECT_KEY }}
NUXT_HUB_USER_TOKEN: ${{ secrets.NUXT_HUB_USER_TOKEN }}

0 comments on commit f033d61

Please sign in to comment.