Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to node 20. #148

Merged
merged 17 commits into from
Oct 31, 2023
18 changes: 9 additions & 9 deletions .github/workflows/site-ci.yml
Original file line number Diff line number Diff line change
@@ -12,10 +12,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.1.5
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20.9.0'
- name: Install dependencies
working-directory: ./
run: npm ci
@@ -53,12 +53,12 @@ jobs:
needs: test
if: github.ref == 'refs/heads/preview'
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '20.9.0'
- name: Notify slack started
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
@@ -103,12 +103,12 @@ jobs:
needs: test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '20.9.0'
- name: Notify slack started
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
4 changes: 4 additions & 0 deletions .ncurc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
upgrade: true,
reject: ['carbon-components', 'carbon-components-react'],
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.9.0
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ernte-teilen.org

This repository contains the source code of the [ernte-teilen.org project website](https://ernte-teilen.org). For the mapping and data management tools used on [ernte-teilen.org/karte](https://ernte-teilen.org/karte) and [solawi.ch](https://www.solawi.ch/vernetzungsplattform/), see the [main *teikei* repository](http://github.com/teikei/teikei).
This repository contains the source code of the [ernte-teilen.org project website](https://ernte-teilen.org). For the mapping and data management tools used on [ernte-teilen.org/karte](https://ernte-teilen.org/karte) and [solawi.ch](https://www.solawi.ch/vernetzungsplattform/), see the [main _teikei_ repository](http://github.com/teikei/teikei).

## How to setup and run this project

@@ -11,20 +11,20 @@ This web application is built upon [React](https://reactjs.org/) and [Gatsby](ht
1. Install the [Node.js runtime](https://nodejs.org/en/)
2. Install the [Yarn package manager](https://yarnpkg.com/lang/en/docs/install/#mac-stable)

*Note:* This web application uses [sharp](http://sharp.pixelplumbing.com) for image optimization. This requires `libvips`, which should come pre-installed on most UNIX-like systems. If not, use your package manager of choice to install `libvips-dev` before installing the node dependencies in the next step.
_Note:_ This web application uses [sharp](http://sharp.pixelplumbing.com) for image optimization. This requires `libvips`, which should come pre-installed on most UNIX-like systems. If not, use your package manager of choice to install `libvips-dev` before installing the node dependencies in the next step.

### Install dependencies

`yarn install`
`npm install`

### Run in development

`yarn dev`
`npm run dev`

### Build for production

`yarn build`
`npm run build`

### Serve production build

`yarn serve`
`npm run serve`
Loading