Skip to content

Commit

Permalink
Retrieve Node.js version from package.json instead of from .nvmrc
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Dec 22, 2024
1 parent 71eeae9 commit a10e93d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
check-latest: true
node-version-file: package.json
- run: npm ci
- run: npm run lint
- run: npm run build
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
check-latest: true
node-version-file: package.json
- run: npm ci
- run: npm run build
- uses: actions/configure-pages@v5
Expand Down
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This website is intended as a content website. While it is a landing page for th

## Local development

The website is built using [11ty](https://www.11ty.dev/) and requires a relatively up-to-date version of Node.js - preferably the version in [.nvmrc](./.nvmrc).
The website is built using [11ty](https://www.11ty.dev/) and requires a relatively up-to-date version of Node.js - preferably the version in [package.json](./package.json).

```sh
npm ci # install dependencies from package-lock.json
Expand Down

0 comments on commit a10e93d

Please sign in to comment.