diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index e4d0424..c353b9f 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -34,32 +34,18 @@ jobs: - name: Detect package manager id: detect-package-manager run: | - if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "manager=yarn" >> $GITHUB_OUTPUT - echo "command=install" >> $GITHUB_OUTPUT - echo "runner=yarn" >> $GITHUB_OUTPUT - exit 0 - elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "manager=npm" >> $GITHUB_OUTPUT - echo "command=ci" >> $GITHUB_OUTPUT - echo "runner=npx --no-install" >> $GITHUB_OUTPUT - exit 0 - else - echo "Unable to determine package manager" - exit 1 - fi + echo "manager=bun" >> $GITHUB_OUTPUT + echo "command=i" >> $GITHUB_OUTPUT + echo "runner=bunx" >> $GITHUB_OUTPUT + exit 0 - name: Setup Node uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages uses: actions/configure-pages@v3 with: - # Automatically inject basePath in your Next.js configuration file and disable - # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). - # - # You may remove this line if you want to manage the configuration yourself. static_site_generator: next - name: Restore cache uses: actions/cache@v3 @@ -82,7 +68,6 @@ jobs: with: path: ./out - # Deployment job deploy: environment: name: github-pages