-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.1 KB
/
node.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
SKIP_PREFLIGHT_CHECK: true
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn --frozen-lockfile
- name: Lint
run: yarn lint
- name: Build
run: yarn build
env:
CI: false
PUBLIC_URL: /my-personal-web-react/
# - name: Test
# run: yarn test
#- name: Upload Codecov
# run: bash <(curl -s https://codecov.io/bash)
# if: ${{ matrix.node-version == '14.x' }}
# - name: Deploy
# if: ${{ github.event_name == 'push' && matrix.node-version == '18.x' }}
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./build