Bump node version to v20 #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: push | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
react-version: [18] | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Environment | |
uses: prezly/setup-github-actions@v1 | |
with: | |
node: ${{ matrix.node-version }} | |
pnpm: "9.4.0" | |
- name: Set React ${{ matrix.react-version }} | |
uses: prezly/pnpm-overrides-action@v1 | |
with: | |
'@types/react': "${{ matrix.react-version }}" | |
'@types/react-dom': "${{ matrix.react-version }}" | |
'react': "${{ matrix.react-version }}" | |
'react-dom': "${{ matrix.react-version }}" | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- run: pnpm build | |
- run: pnpm test |