Skip to content

Commit c02f377

Browse files
authored
ci: run node18 (#488)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent bc73456 commit c02f377

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/nodejs.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111

1212
env:
13-
NODE_ACTIVE_LTS: "16" # see https://nodejs.org/en/about/releases/
13+
NODE_ACTIVE_LTS: "18" # see https://nodejs.org/en/about/releases/
1414
REPORTS_DIR: "reports"
1515

1616
jobs:
@@ -96,8 +96,9 @@ jobs:
9696
node-version:
9797
# action based on https://github.com/actions/node-versions/releases
9898
# see also: https://nodejs.org/en/about/releases/
99-
- "18" # current
100-
- "16" # active LTS
99+
- "19" # current
100+
- "18" # active LTS
101+
- "16"
101102
- "14"
102103
- "14.0.0" # lowest supported
103104
os:
@@ -158,18 +159,22 @@ jobs:
158159
uses: actions/setup-node@v3
159160
with:
160161
node-version: ${{ env.NODE_ACTIVE_LTS }}
161-
- name: setup project
162-
run: >
163-
npm i --no-save
164-
'typescript@${{ matrix.typescript-version }}'
165-
'@types/node@${{ matrix.nodeTypes-version || env.NODE_ACTIVE_LTS }}'
166-
working-directory: ${{ env.EXAMPLE_DIR }}
167162
- name: fetch build artifact
168163
# see https://github.com/actions/download-artifact
169164
uses: actions/download-artifact@v3
170165
with:
171166
name: dist.d
172167
path: dist.d
168+
- name: setup library
169+
run: npm i --ignore-scripts --omit=dev
170+
- name: setup example project
171+
run: >
172+
npm i --no-save
173+
'typescript@${{ matrix.typescript-version }}'
174+
'@types/node@${{ matrix.nodeTypes-version || env.NODE_ACTIVE_LTS }}'
175+
working-directory: ${{ env.EXAMPLE_DIR }}
176+
- run: npm ls
177+
working-directory: ${{ env.EXAMPLE_DIR }}
173178
- name: use type declarations
174179
run: npm run build
175180
working-directory: ${{ env.EXAMPLE_DIR }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525

2626
env:
2727
REPORTS_DIR: CI_reports
28-
NODE_ACTIVE_LTS: "16"
28+
NODE_ACTIVE_LTS: "18"
2929

3030
jobs:
3131
bump:

0 commit comments

Comments
 (0)