From f151c829d56bd41bd330b4bd0cd4c05040382633 Mon Sep 17 00:00:00 2001 From: Ivan Dimitrov Date: Sun, 19 Nov 2023 10:46:31 +0200 Subject: [PATCH] try with bun --- .github/workflows/nextjs.yml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) 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