diff --git a/.github/workflows/github-pages.yaml b/.github/workflows/github-pages.yaml index 44a7c6c..f7fe57f 100644 --- a/.github/workflows/github-pages.yaml +++ b/.github/workflows/github-pages.yaml @@ -1,27 +1,20 @@ -# Simple workflow for deploying static content to GitHub Pages name: Deploy static content to Pages on: - # Runs on pushes targeting the default branch push: branches: ['main'] - - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write -# Allow one concurrent deployment concurrency: group: 'pages' cancel-in-progress: true jobs: - # Single deploy job since we're just deploying deploy: environment: name: github-pages @@ -34,17 +27,18 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - cache: 'npm' + cache: 'pnpm' # Specify cache for pnpm + - name: Install pnpm + run: npm install -g pnpm # Install pnpm globally - name: Install dependencies - run: npm install + run: pnpm install # Use pnpm to install dependencies - name: Build - run: npm run build + run: pnpm run build # Use pnpm to run the build script - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - # Upload dist repository path: './dist' - name: Deploy to GitHub Pages id: deployment