Skip to content

Commit 1874783

Browse files
committed
Use mise.toml
1 parent 8c748cc commit 1874783

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

.github/workflows/validate.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ concurrency:
1010
group: validate-${{ github.ref_name }}
1111
cancel-in-progress: true
1212

13-
env:
14-
CAIDO_PNPM_VERSION: 9
15-
1613
jobs:
1714
lint:
1815
runs-on: ubuntu-latest
@@ -21,13 +18,13 @@ jobs:
2118
- name: Checkout Repo
2219
uses: actions/checkout@v4
2320

24-
- name: Setup pnpm
25-
uses: pnpm/action-setup@v4
21+
- name: Install Mise
22+
uses: caido/action-mise-action@v3.2.0
2623
with:
27-
version: ${{ env.CAIDO_PNPM_VERSION }}
24+
version: ${{ vars.CI__MISE_VERSION }}
2825

2926
- name: Install dependencies
30-
run: pnpm install --frozen-lockfile
27+
run: pnpm install
3128

3229
- name: Lint Markdown
3330
uses: DavidAnson/markdownlint-cli2-action@510b996878fc0d1a46c8a04ec86b06dbfba09de7 # v15
@@ -47,13 +44,13 @@ jobs:
4744
- name: Checkout Repo
4845
uses: actions/checkout@v4
4946

50-
- name: Setup pnpm
51-
uses: pnpm/action-setup@v4
47+
- name: Install Mise
48+
uses: caido/action-mise-action@v3.2.0
5249
with:
53-
version: ${{ env.CAIDO_PNPM_VERSION }}
50+
version: ${{ vars.CI__MISE_VERSION }}
5451

5552
- name: Install dependencies
56-
run: pnpm install --frozen-lockfile
53+
run: pnpm install
5754

5855
- name: Run build
5956
run: pnpm build

mise.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tools]
2+
node = "22"
3+
pnpm = "10.17"
4+
5+
[settings]
6+
idiomatic_version_file_enable_tools = []

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
},
1515
"author": "Caido Labs Inc. <dev@caido.io>",
1616
"license": "CC-BY-4.0",
17+
"engines": {
18+
"node": ">=22",
19+
"pnpm": ">=10"
20+
},
1721
"devDependencies": {
1822
"@scalar/openapi-types": "0.3.2",
1923
"@types/node": "22.15.30",

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
minimumReleaseAge: 7200

0 commit comments

Comments
 (0)