ci: mise instead of corepack, tooling on Node 26 (#861)

* ci: install node and yarn with mise, not corepack

Node 25+ no longer ships corepack. The integrity job now installs node and yarn from mise.toml through jdx/mise-action, and keys the yarn cache on the resolved node version.

* build: upgrade TypeScript to 6 and Node types to 24

@types/node now matches the node24 runtime the action runs on; @types/node 24 needs TypeScript 5.2+. tsconfig moves to nodenext resolution (node10 is deprecated in TypeScript 6) and dist is rebuilt with the new emitter.

* build: move tooling and CI to Node 26.12.1

mise.toml pins Node 26.12.1, which the Integrity job now installs through mise-action. The action runtime stays node24, the highest GitHub Actions offers.

---------

Co-authored-by: Frostebite <[email protected]>
This commit is contained in:
Webber Takken
2026-10-24 19:19:53 +01:00
committed by GitHub
co-authored by Frostebite
parent 51325fd536
commit 58e7224b82
8 changed files with 288 additions and 262 deletions
+8 -9
View File
@@ -23,25 +23,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install package manager (from package.json)
run: |
corepack enable
corepack install
- uses: actions/setup-node@v4
- name: Install node and yarn (from mise.toml)
uses: jdx/mise-action@v5
with:
node-version: '18'
install_args: node yarn
- name: Resolve yarn cache folder
id: yarn-config
run: echo "cacheFolder=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
run: |
echo "cacheFolder=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
echo "nodeVersion=$(node --version)" >> "$GITHUB_OUTPUT"
- name: Restore yarn install cache (node_modules + cacheFolder + install-state)
uses: actions/cache@v4
with:
path: |
${{ steps.yarn-config.outputs.cacheFolder }}
.yarn/install-state.gz
key: yarn-v2-${{ runner.os }}-node-18-${{ hashFiles('yarn.lock') }}
key: yarn-v2-${{ runner.os }}-node-${{ steps.yarn-config.outputs.nodeVersion }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-v2-${{ runner.os }}-node-18-
yarn-v2-${{ runner.os }}-node-${{ steps.yarn-config.outputs.nodeVersion }}-
- name: Install deps
env:
YARN_ENABLE_HARDENED_MODE: 'false'