Skip to content

Commit ec5cd77

Browse files
authored
build: add support for Node.js 18 (#479)
* update recommended node version * upgrade all dependencies to support node 18 * upgrade gh actions to use node 18 * update lockfile * update postcss custom var module to newer postcss version and esm fixes Update postcss-custom-properties from v12 to v13 #442 * docs: import uui-table to render custom properties stories properly * build: remove unsupported npm option unsafe-perm
1 parent d9cd3a0 commit ec5cd77

11 files changed

+7143
-33305
lines changed

.github/workflows/chromatic.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ jobs:
4848
with:
4949
# pulls all commits (needed for chromatic to find baselines)
5050
fetch-depth: '0'
51-
- name: Use Node.js 16.x
51+
- name: Use Node.js 18.x
5252
uses: actions/setup-node@v3
5353
with:
54-
node-version: 16.x
54+
node-version: 18.x
5555
cache: 'npm'
56-
- run: npm config set unsafe-perm true
5756
- name: Install dependencies
5857
run: npm ci
5958
- name: Publish to Chromatic

.github/workflows/publish.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ jobs:
3232
# pulls all commits (needed for lerna / semantic release to correctly version)
3333
fetch-depth: '0'
3434

35-
- name: Use Node.js 16.x
35+
- name: Use Node.js 18.x
3636
uses: actions/setup-node@v3
3737
with:
38-
node-version: 16.x
38+
node-version: 18.x
3939
cache: 'npm'
4040

4141
- run: npm -v
42-
- run: npm config set unsafe-perm true
4342
- run: npm ci
4443

4544
- name: Authenticate with Registry

.github/workflows/tests.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
node-version: [16.x]
27+
node-version: [18.x]
2828

2929
# Steps represent a sequence of tasks that will be executed as part of the job
3030
steps:
@@ -35,7 +35,6 @@ jobs:
3535
with:
3636
node-version: ${{ matrix.node-version }}
3737
cache: 'npm'
38-
- run: npm config set unsafe-perm true
3938
- run: npm ci
4039
- run: npm run lint
4140
- run: sudo npx playwright install-deps

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.17
1+
18.16

0 commit comments

Comments
 (0)