Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests

name: Content and unit tests

on:
Expand All @@ -8,17 +6,20 @@ on:
pull_request:
branches: ['main']

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v7
with:
node-version: '20.x'
node-version-file: '.nvmrc'
cache: 'npm'

- run: npm ci
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ on:
pull_request:
branches: ['main']

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Check spelling in content directory
uses: crate-ci/typos@master
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
24
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ To find an issue that you want to fix, scan through the list. You may find that

### Development Environment

Make sure you have Node.js version `20.x` as well as npm installed. You can find how to test your changes locally [here](https://github.com/CodingTrain/thecodingtrain.com#development-info).
Make sure you have Node.js version `24.x` as well as npm installed. You can find how to test your changes locally [here](https://github.com/CodingTrain/thecodingtrain.com#development-info).
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This repo holds the website for [thecodingtrain.com](https://thecodingtrain.com/

## Development info

When updating the website, it is helpful to run the website locally in order to quickly see the changes made. Make sure you have Node.js version `20.x` installed and then perform the following steps:
When updating the website, it is helpful to run the website locally in order to quickly see the changes made. Make sure you have Node.js version `24.x` installed and then perform the following steps:

1. Clone down the repo to your computer and `cd` into the folder
2. Run `npm install`
Expand Down
4 changes: 1 addition & 3 deletions gatsby-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default {
}
},
'gatsby-plugin-image',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
Expand Down Expand Up @@ -144,7 +143,6 @@ export default {
name: '404-page-data',
path: './content/pages/404'
}
},
'gatsby-plugin-netlify'
}
]
};
1 change: 1 addition & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
command = "npm run build-ci"
# skip build when changes are isolated to README.md or .all-contributorsrc
ignore = "git diff --quiet HEAD^ HEAD ':(exclude)README.md' ':(exclude).all-contributorsrc' "

[dev]
framework = "gatsby"
targetPort = 8000
Expand Down
Loading