Skip to content

Commit 27dd6d7

Browse files
committed
chore: update Node.js version to 22.x and pnpm version to 10.15.1 across workflows; improve caching strategy
1 parent c4bad56 commit 27dd6d7

File tree

11 files changed

+44
-72
lines changed

11 files changed

+44
-72
lines changed

.github/workflows/build.yml

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

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

1717
steps:
18-
- uses: pnpm/action-setup@v4.1.0
18+
- uses: pnpm/action-setup@v4
1919
with:
20-
version: latest
20+
version: 10.15.1
2121

2222
- uses: actions/checkout@v4
2323

24-
- name: Cache PNPM dependencies
25-
uses: actions/cache@v4
26-
with:
27-
path: ~/.pnpm-store
28-
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
29-
restore-keys: |
30-
${{ runner.os }}-pnpm-
31-
3224
- name: Use Node.js ${{ matrix.node-version }}
3325
uses: actions/setup-node@v4
3426
with:
3527
node-version: ${{ matrix.node-version }}
28+
cache: 'pnpm'
3629

3730
- name: Install Dependencies
3831
run: pnpm install

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: pnpm/action-setup@v4
1515
with:
16-
version: 9
16+
version: 10.15.1
1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: 22
2020
cache: 'pnpm'
21-
- run: pnpm install --frozen-lockfile
21+
- run: pnpm install
2222
- run: pnpm test -- --run
2323
env:
2424
CI: true

.github/workflows/coveralls.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,21 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2.4.2
13+
uses: actions/checkout@v4
1414

15-
- name: Cache PNPM dependencies
16-
uses: actions/cache@v4
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
1717
with:
18-
path: ~/.pnpm-store
19-
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
20-
restore-keys: |
21-
${{ runner.os }}-pnpm-
18+
node-version: 22
19+
cache: 'pnpm'
2220

2321
- name: Set up pnpm
2422
uses: pnpm/action-setup@v4
2523
with:
26-
version: latest
24+
version: 10.15.1
2725

2826
- name: Install dependencies
29-
run: pnpm install
27+
run: pnpm install --frozen-lockfile
3028

3129
- name: Run tests
3230
run: pnpm test

.github/workflows/playwright.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,19 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- uses: pnpm/action-setup@v4.1.0
21+
- uses: pnpm/action-setup@v4
2222
with:
23-
version: latest
23+
version: 10.15.1
2424

2525
- uses: actions/setup-node@v4
2626
with:
27-
node-version: 20
27+
node-version: 22
2828
cache: 'pnpm'
2929

30-
- name: Get pnpm store directory
31-
id: pnpm-cache
32-
shell: bash
33-
run: |
34-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
35-
36-
- uses: actions/cache@v3
37-
name: Setup pnpm cache
38-
with:
39-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
40-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41-
restore-keys: |
42-
${{ runner.os }}-pnpm-store-
30+
# Cache is handled by setup-node with cache: 'pnpm'
4331

4432
- name: Install dependencies
45-
run: pnpm install
33+
run: pnpm install --frozen-lockfile
4634

4735
- name: Install Playwright Browsers
4836
run: pnpm exec playwright install --with-deps ${{ matrix.browser }}
@@ -68,17 +56,17 @@ jobs:
6856
steps:
6957
- uses: actions/checkout@v4
7058

71-
- uses: pnpm/action-setup@v2
59+
- uses: pnpm/action-setup@v4
7260
with:
73-
version: 8
61+
version: 10.15.1
7462

7563
- uses: actions/setup-node@v4
7664
with:
77-
node-version: 20
65+
node-version: 22
7866
cache: 'pnpm'
7967

8068
- name: Install dependencies
81-
run: pnpm install
69+
run: pnpm install --frozen-lockfile
8270

8371
- name: Install Playwright
8472
run: pnpm exec playwright install --with-deps chromium

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: pnpm/action-setup@v4
1414
with:
15-
version: 9
15+
version: 10.15.1
1616
- uses: actions/setup-node@v4
1717
with:
1818
node-version: 22

.github/workflows/size-limit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: pnpm/action-setup@v4
1313
with:
14-
version: 9
14+
version: 10.15.1
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
17+
node-version: 22
1818
cache: 'pnpm'
1919
- run: pnpm install --frozen-lockfile
2020
- run: pnpm size-limit

.github/workflows/snyk.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ jobs:
1818
- name: Setup PNPM
1919
uses: pnpm/action-setup@v4
2020
with:
21-
version: latest
21+
version: 10.15.1
2222

23-
- name: Cache PNPM dependencies
24-
uses: actions/cache@v4
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
2525
with:
26-
path: ~/.pnpm-store
27-
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
28-
restore-keys: |
29-
${{ runner.os }}-pnpm-
26+
node-version: 22
27+
cache: 'pnpm'
3028

3129
- name: Install dependencies
32-
run: pnpm install
30+
run: pnpm install --frozen-lockfile
3331

3432
- name: Cache Snyk cache folder
3533
uses: actions/cache@v4

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "react-chrono",
33
"version": "2.9.1",
44
"license": "MIT",
5+
"packageManager": "pnpm@10.15.1",
56
"description": "A Modern Timeline component for React",
67
"keywords": [
78
"timeline",

pnpm-lock.yaml

Lines changed: 9 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/elements/popover/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ const PopOver: FunctionComponent<PopOverModel> = ({
155155
aria-haspopup="dialog"
156156
aria-label={placeholder || 'Open menu'}
157157
>
158+
{placeholder && <span className={selecterLabel}>{placeholder}</span>}
158159
<span
159160
className={[selecterIcon, state.open ? selecterIconOpen : ''].join(
160161
' ',

0 commit comments

Comments
 (0)