Skip to content

Commit

Permalink
Github actions: use node version from nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Feb 17, 2023
1 parent 3a812a9 commit 317d6f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/astro.yml
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 317d6f3

Please sign in to comment.