Skip to content

Commit 63729cb

Browse files
committed
chore: upgrade Yarn and Node.js to the latest version
Signed-off-by: Jon Koops <[email protected]>
1 parent 46e9f85 commit 63729cb

File tree

13 files changed

+23647
-17217
lines changed

13 files changed

+23647
-17217
lines changed

.github/workflows/a11y.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
1-
name: A11y CI
2-
1+
name: A11Y CI
32
on:
43
push:
54
branches: [main]
65
pull_request:
76
branches: [main]
8-
97
jobs:
108
a11y:
11-
name: A11y testing
9+
name: A11y Testing
1210
runs-on: ubuntu-latest
1311
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v2
16-
- name: Use Node.js 16
17-
uses: actions/setup-node@v2
12+
- name: Check out project
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
1817
with:
19-
node-version: 18
20-
- name: Install
21-
run: yarn install
22-
- name: Build
18+
node-version: 20
19+
check-latest: true
20+
21+
- name: Enable Corepack
22+
run: corepack enable
23+
24+
- name: Install dependencies
25+
run: yarn install --immutable
26+
27+
- name: Run build
2328
run: yarn build
24-
- name: Start server and run a11y tests
25-
run: npx start-server-and-test start http://localhost:3000 test:a11y
29+
30+
- name: Start server and run A11Y tests
31+
run: yarn start-server-and-test start http://localhost:3000 test:a11y

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
jobs:
8+
ci:
9+
runs-on: ubuntu-latest
10+
name: Build, lint and test
11+
steps:
12+
- name: Check out project
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
check-latest: true
20+
21+
- name: Enable Corepack
22+
run: corepack enable
23+
24+
- name: Install dependencies
25+
run: yarn install --immutable
26+
27+
- name: Run build
28+
run: yarn build
29+
30+
- name: Run linter
31+
run: yarn lint
32+
33+
- name: Run tests
34+
run: yarn test

.github/workflows/node.js.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/promote.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,45 @@
1-
name: promote
1+
name: Promote
22
on:
33
push:
44
# Sequence of patterns matched against refs/tags
5-
tags:
5+
tags:
66
- v5.*
77
jobs:
8-
build-and-promote:
8+
promote:
9+
name: Promote to latest
910
runs-on: ubuntu-latest
1011
env:
1112
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1213
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1314
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1415
NPM_CONFIG_LEGACY_PEER_DEPS: true
1516
steps:
16-
- uses: actions/checkout@v2
17-
- name: Build for promotion
18-
run: yarn install --frozen-lockfile && yarn build
19-
- uses: actions/setup-node@v3
17+
- name: Check out project
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
2022
with:
21-
node-version: '16.x'
22-
registry-url: 'https://registry.npmjs.org'
23-
- name: GitHub Tag Name example
23+
node-version: 20
24+
check-latest: true
25+
registry-url: https://registry.npmjs.org
26+
27+
- name: Enable Corepack
28+
run: corepack enable
29+
30+
- name: Install dependencies
31+
run: yarn install --immutable
32+
33+
- name: Run build
34+
run: yarn build
35+
36+
- name: Print tag name
2437
run: |
2538
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
2639
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
27-
- name: Manual publish
40+
41+
- name: Publish package
2842
run: |
2943
cd packages/module
3044
npm version ${{ github.ref_name }} --git-tag-version false
31-
npm publish --tag=latest
45+
npm publish --tag=latest

.github/workflows/release.yml

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,23 @@ jobs:
1111
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1212
NPM_CONFIG_LEGACY_PEER_DEPS: true
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
14+
- name: Check out project
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
1619
with:
17-
node-version: 18
18-
- uses: actions/cache@v2
19-
id: yarn-cache
20-
name: Cache npm deps
21-
with:
22-
path: |
23-
node_modules
24-
**/node_modules
25-
~/.cache/Cypress
26-
key: ${{ runner.os }}-yarn-16-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
27-
- run: yarn install --frozen-lockfile
28-
if: steps.yarn-cache.outputs.cache-hit != 'true'
29-
- uses: actions/cache@v2
30-
id: dist
31-
name: Cache dist
32-
with:
33-
path: |
34-
packages/*/dist
35-
packages/react-styles/css
36-
key: ${{ runner.os }}-dist-16-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
37-
- name: Build dist
20+
node-version: 20
21+
check-latest: true
22+
23+
- name: Enable Corepack
24+
run: corepack enable
25+
26+
- name: Install dependencies
27+
run: yarn install --immutable
28+
29+
- name: Run build
3830
run: yarn build
39-
if: steps.dist.outputs.cache-hit != 'true'
31+
4032
- name: Release to NPM
4133
run: cd packages/module && npx [email protected] --legacy-peer-deps
Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
11
name: Percy
2-
32
on:
43
push:
54
branches: [main]
65
pull_request:
76
branches: [main]
8-
9-
env:
10-
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
11-
127
jobs:
138
percy:
149
name: Visual testing
1510
runs-on: ubuntu-latest
1611
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v2
19-
- name: Use Node.js 16
20-
uses: actions/setup-node@v2
12+
- name: Check out project
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
2117
with:
22-
node-version: 18
23-
- name: Install
24-
run: yarn install
25-
- name: Build
18+
node-version: 20
19+
check-latest: true
20+
21+
- name: Enable Corepack
22+
run: corepack enable
23+
24+
- name: Install dependencies
25+
run: yarn install --immutable
26+
27+
- name: Run build
2628
run: yarn build
29+
2730
- name: Start server and run percy
2831
run: |
2932
yarn start &
3033
sleep 60 &&
3134
yarn visual
3235
env:
33-
PERCY_TOKEN: ${{secrets.PERCY_TOKEN}}
36+
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
**/node_modules
22
dist
3-
yarn-error.log
43
stats.json
54
coverage
65
storybook-static
@@ -10,3 +9,12 @@ storybook-static
109
stats.html
1110

1211
.cache
12+
13+
# Yarn
14+
.pnp.*
15+
.yarn/*
16+
!.yarn/patches
17+
!.yarn/plugins
18+
!.yarn/releases
19+
!.yarn/sdks
20+
!.yarn/versions

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"description": "This library provides the quickstarts module",
55
"license": "MIT",
66
"private": true,
7+
"packageManager": "[email protected]+sha512.af78262d7d125afbfeed740602ace8c5e4405cd7f4735c08feb327286b2fdb2390fbca01589bfd1f50b1240548b74806767f5a063c94b67e431aabd0d86f7774",
8+
"engines": {
9+
"node": ">=20"
10+
},
711
"workspaces": [
812
"packages/dev",
913
"packages/module",
@@ -117,8 +121,5 @@
117121
"!**/node_modules/**"
118122
],
119123
"resolver": "./jest-resolver.js"
120-
},
121-
"engines": {
122-
"node": ">=18.0.0"
123124
}
124125
}

0 commit comments

Comments
 (0)