Skip to content

Commit 0076fc1

Browse files
authored
chore: use node 22 and github actions improvements (#596)
* chore: use node 22 and github actions improvements * fix: indent in composite action * style: engines field with space * chore: update typos check cli
1 parent 7409a99 commit 0076fc1

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: setup-node-pnpm
2+
description: Setup Node and PNPM
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: "setup pnpm"
7+
uses: "pnpm/action-setup@v4"
8+
- name: "setup node"
9+
uses: "actions/setup-node@v4"
10+
with:
11+
cache: "pnpm"
12+
node-version: 22

.github/workflows/build-preview.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@ jobs:
1515
fetch-depth: 0
1616
ref: ${{ github.event.pull_request.head.ref }}
1717
repository: ${{ github.event.pull_request.head.repo.full_name }}
18-
- name: "setup pnpm"
19-
uses: "pnpm/action-setup@v4"
20-
- name: "setup node"
21-
uses: "actions/setup-node@v4"
22-
with:
23-
cache: "pnpm"
24-
node-version: 20
18+
- name: "setup node and pnpm"
19+
uses: ./.github/actions/setup-node-pnpm
2520
- name: "setup d2"
2621
run: "curl -fsSL https://d2lang.com/install.sh | sh -s --"
2722
- name: "install dependencies"

.github/workflows/deploy.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ jobs:
1717
uses: "actions/checkout@v4"
1818
with:
1919
fetch-depth: 0
20-
- name: "setup pnpm"
21-
uses: "pnpm/action-setup@v4"
22-
- name: "setup node"
23-
uses: "actions/setup-node@v4"
24-
with:
25-
cache: "pnpm"
26-
node-version: 20
20+
- name: "setup node and pnpm"
21+
uses: ./.github/actions/setup-node-pnpm
2722
- name: "setup d2"
2823
run: "curl -fsSL https://d2lang.com/install.sh | sh -s --"
2924
- name: "install dependencies"

.github/workflows/format.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
16-
- name: Install pnpm
17-
uses: pnpm/action-setup@v4
18-
- name: Set up Node
19-
uses: actions/setup-node@v4
20-
with:
21-
cache: "pnpm"
22-
node-version: 20
16+
- name: "setup node and pnpm"
17+
uses: ./.github/actions/setup-node-pnpm
2318
- name: Install dependencies
2419
run: pnpm install
2520
- name: Check format

.github/workflows/spellcheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616
- name: Spell check
17-
uses: crate-ci/typos@v1.24.6
17+
uses: crate-ci/typos@v1.32.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ How to get docs running on your local machine for development.
99

1010
### Prerequisites
1111

12-
- [node](https://nodejs.org)
12+
- [node 22](https://nodejs.org)
1313
- [pnpm](https://pnpm.io/installation)
1414
- [d2](https://d2lang.com/) (optional for development - used for generating diagrams)
1515

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@
3737
"prettier-plugin-organize-imports": "^4.1.0",
3838
"prettier-plugin-svelte": "^3.3.3"
3939
},
40+
"engines": {
41+
"node": "22.x"
42+
},
4043
"packageManager": "[email protected]+sha512.0e82714d1b5b43c74610193cb20734897c1d00de89d0e18420aebc5977fa13d780a9cb05734624e81ebd81cc876cd464794850641c48b9544326b5622ca29971"
4144
}

0 commit comments

Comments
 (0)