From 317d6f3befca6005e44a181adb8b32bb2b05ce9e Mon Sep 17 00:00:00 2001 From: Tobias Date: Fri, 17 Feb 2023 14:37:37 +0100 Subject: [PATCH] Github actions: use node version from nvmrc https://github.com/actions/setup-node/issues/32#issuecomment-1003854758 --- .github/workflows/astro.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml index 32c8ab7..001b6e3 100644 --- a/.github/workflows/astro.yml +++ b/.github/workflows/astro.yml @@ -7,7 +7,7 @@ name: Deploy Astro site to Pages on: # Runs on pushes targeting the default branch push: - branches: ["main"] + branches: ['main'] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -20,11 +20,11 @@ permissions: # Allow one concurrent deployment concurrency: - group: "pages" + group: 'pages' cancel-in-progress: true env: - BUILD_PATH: "." # default value when not using subfolders + BUILD_PATH: '.' # default value when not using subfolders # BUILD_PATH: subfolder jobs: @@ -54,7 +54,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: "16" + node-version-file: '.nvmrc' cache: ${{ steps.detect-package-manager.outputs.manager }} cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json - name: Setup Pages