diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d30f8881..b12ab34c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -8,6 +8,7 @@ on: pull_request: branches: - main + - fix/github-actions-node-16-to-node-20 permissions: packages: write contents: write @@ -23,7 +24,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" cache: "npm" cache-dependency-path: frontend/package-lock.json @@ -32,7 +33,7 @@ jobs: working-directory: frontend - name: Build Static Web App - run: npm run build -- --base=$BASE_URL + run: npm run build -- --base=/$BASE_URL/ env: BASE_URL: ${{ github.event.repository.name }} VITE_FACE_API_KEY: ${{ secrets.VITE_FACE_API_KEY }} @@ -62,7 +63,7 @@ jobs: - uses: actions/setup-node@v3 if: github.repository_owner == 'microsoft' with: - node-version: "14" + node-version: "20" - run: npm init -y if: github.repository_owner == 'microsoft'