Skip to content

Commit bfc98a9

Browse files
committed
Upgrade nodejs version in github action
1 parent 71e5199 commit bfc98a9

File tree

3 files changed

+51
-52
lines changed

3 files changed

+51
-52
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,32 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [14.x]
15+
node-version: [20.x]
1616

1717
steps:
18-
- uses: actions/checkout@v2
19-
- name: Cache .dts
20-
id: cache-dts
21-
uses: actions/cache@v2
22-
with:
23-
path: .dts
24-
key: ${{ runner.os }}-dts
25-
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v1
27-
with:
28-
node-version: ${{ matrix.node-version }}
29-
- run: yarn install --immutable
30-
- run: yarn workspace react-native-render-html test:ts
31-
name: Typescript Tests
32-
- run: yarn workspace react-native-render-html test:jest --coverage
33-
name: Jest Tests
34-
- run: yarn workspace react-native-render-html test:lint
35-
name: Linting Tests
36-
- run: yarn workspace react-native-render-html build
37-
name: Build
38-
- run: yarn build:tools
39-
name: Build Tooling Libraries
40-
- uses: codecov/codecov-action@v2
41-
with:
42-
file: ./packages/render-html/coverage/clover.xml # optional
43-
fail_ci_if_error: true # optional (default = false)
18+
- uses: actions/checkout@v2
19+
- name: Cache .dts
20+
id: cache-dts
21+
uses: actions/cache@v2
22+
with:
23+
path: .dts
24+
key: ${{ runner.os }}-dts
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- run: yarn install --immutable
30+
- run: yarn workspace react-native-render-html test:ts
31+
name: Typescript Tests
32+
- run: yarn workspace react-native-render-html test:jest --coverage
33+
name: Jest Tests
34+
- run: yarn workspace react-native-render-html test:lint
35+
name: Linting Tests
36+
- run: yarn workspace react-native-render-html build
37+
name: Build
38+
- run: yarn build:tools
39+
name: Build Tooling Libraries
40+
- uses: codecov/codecov-action@v2
41+
with:
42+
file: ./packages/render-html/coverage/clover.xml # optional
43+
fail_ci_if_error: true # optional (default = false)

.github/workflows/docs.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [14.x]
15+
node-version: [20.x]
1616

1717
steps:
18-
- uses: actions/checkout@v2
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
- run: yarn install --immutable
24-
- run: yarn workspace react-native-render-html build
25-
name: Build sources
26-
- run: yarn process-svg-assets
27-
name: Process SVG assets
28-
- run: yarn build:tools
29-
name: Build Tooling Libraries
30-
- run: yarn build:docs
31-
name: Build documentation
32-
- run: yarn website build
33-
name: Build website
34-
- run: yarn discovery test:ts
35-
name: Discovery TS
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: yarn install --immutable
24+
- run: yarn workspace react-native-render-html build
25+
name: Build sources
26+
- run: yarn process-svg-assets
27+
name: Process SVG assets
28+
- run: yarn build:tools
29+
name: Build Tooling Libraries
30+
- run: yarn build:docs
31+
name: Build documentation
32+
- run: yarn website build
33+
name: Build website
34+
- run: yarn discovery test:ts
35+
name: Discovery TS

.github/workflows/npm.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ on:
66
description: 'NPM exact version'
77
required: true
88
schedule:
9-
- cron: '0 0 * * *'
9+
- cron: '0 0 * * *'
1010

1111
jobs:
1212
build:
13-
1413
runs-on: ubuntu-latest
1514

1615
strategy:
1716
matrix:
18-
node-version: [14, 15, 16]
19-
17+
node-version: [18, 20, 22]
18+
2019
steps:
2120
- name: Use Node.js ${{ matrix.node-version }}
2221
uses: actions/setup-node@v2
@@ -29,5 +28,5 @@ jobs:
2928
run: npm install -g @react-native-community/cli
3029
- name: Init new project
3130
run: react-native init --npm test; cd test
32-
- name: "Install version ${{ github.event.inputs.version }}"
33-
run: "npm install react-native-render-html@${{ github.event.inputs.version }}"
31+
- name: 'Install version ${{ github.event.inputs.version }}'
32+
run: 'npm install react-native-render-html@${{ github.event.inputs.version }}'

0 commit comments

Comments
 (0)