From 6f569d9ea7ad8cf71343b2ae62e32bbd11f58584 Mon Sep 17 00:00:00 2001 From: vivek Date: Sat, 11 Nov 2023 00:37:14 +0530 Subject: [PATCH] update to npm --- .github/workflows/astro.yml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml index b6b70a4..c754d7d 100644 --- a/.github/workflows/astro.yml +++ b/.github/workflows/astro.yml @@ -7,16 +7,8 @@ on: permissions: contents: read - pages: write id-token: write -concurrency: - group: "pages" - cancel-in-progress: false - -env: - BUILD_PATH: "." - jobs: build: name: Build @@ -29,20 +21,13 @@ jobs: uses: actions/setup-node@v3 with: node-version: "16" - cache: 'pnpm' + cache: 'npm' - - name: Install dependencies with pnpm - run: pnpm install + - name: Install dependencies with npm + run: npm ci working-directory: ${{ env.BUILD_PATH }} - name: Build with Astro run: | - pnpm run build \ - --site "${{ steps.pages.outputs.origin }}" \ - --base "${{ steps.pages.outputs.base_path }}" + npm run build working-directory: ${{ env.BUILD_PATH }} - - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ${{ env.BUILD_PATH }}/dist