diff --git a/.github/workflows/demo.deploy.yml b/.github/workflows/demo.deploy.yml index 5073a3c..80036df 100644 --- a/.github/workflows/demo.deploy.yml +++ b/.github/workflows/demo.deploy.yml @@ -17,34 +17,10 @@ jobs: steps: - uses: actions/checkout@v4 - - # Set up Node.js with caching for pnpm - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: 'pnpm' # Caching with pnpm - - # Install pnpm globally - - name: Install pnpm - run: | - npm install -g pnpm - # Ensure pnpm is in the PATH - echo "/usr/local/bin" >> $GITHUB_PATH - - # Cache pnpm store using actions/cache@v3 - - name: Cache pnpm store - uses: actions/cache@v3 - with: - path: ~/.pnpm-store - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - # Install dependencies using pnpm - - name: Install dependencies - run: pnpm install - - # Build the project using pnpm - - name: Build the project - run: pnpm run build --if-present + cache: 'npm' + - run: npm ci + - run: npm run build --if-present