Skip to content

Commit

Permalink
use node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Oct 14, 2023
1 parent c35d9ef commit 405664f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Build and Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
Expand All @@ -22,9 +19,9 @@ jobs:
- name: Install, build, and upload your site
uses: withastro/action@v0
with:
path: . # The root location of your Astro project inside the repository. (optional)
node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
package-manager: npm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
path: .
node-version: 20
package-manager: npm

deploy:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
uses: withastro/action@v0
with:
path: .
node-version: 18
node-version: 20
package-manager: npm
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ publish = "dist"
command = "yarn build"

[build.environment]
NODE_VERSION = "18"
NODE_VERSION = "20"
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Clone: `git clone https://github.com/reednel/pages.git`

Checkout template: `git checkout template`

Use Node 18: `nvm install --lts`
Use Node 20: `nvm install --lts`

Install Node Modules: `npm install`

Expand Down

0 comments on commit 405664f

Please sign in to comment.