diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3e357f2..2b860b5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,9 +25,7 @@ jobs: --health-retries 5 steps: - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 - with: - node-version-file: package.json + - uses: jdx/mise-action@v2 - run: npm ci - run: npm run ci - uses: codecov/codecov-action@v6 @@ -49,10 +47,7 @@ jobs: --health-retries 5 steps: - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 - with: - node-version-file: package.json - - uses: oven-sh/setup-bun@v2 + - uses: jdx/mise-action@v2 - run: npm ci - run: bun run ci:bun # https://commitlint.js.org/guides/ci-setup.html @@ -62,9 +57,7 @@ jobs: - uses: actions/checkout@v6 with: fetch-depth: 0 - - uses: actions/setup-node@v6 - with: - node-version-file: package.json + - uses: jdx/mise-action@v2 - run: npm install -D @commitlint/cli @commitlint/config-conventional - name: Validate current commit (last commit) with commitlint if: github.event_name == 'push' diff --git a/.github/workflows/pkg-pr-new.yaml b/.github/workflows/pkg-pr-new.yaml index efd818c..1db9620 100644 --- a/.github/workflows/pkg-pr-new.yaml +++ b/.github/workflows/pkg-pr-new.yaml @@ -11,9 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 - with: - node-version-file: package.json + - uses: jdx/mise-action@v2 - run: npm ci - run: npm run build - run: > diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9fb573d..38d32aa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,3 +21,11 @@ why it belongs in OpenWorkflow. The core team will help confirm direction before any PRs start. PRs that skip these steps may be closed. + +## Development environment + +This repo uses [mise](https://mise.jdx.dev/) to manage the Node and Bun versions +used for development. Once you have mise installed, run `mise trust` followed by +`mise install` from the repo root to install the versions configured in +`mise.toml`. The GitHub Actions workflows install those versions via +`jdx/mise-action`. diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..2acf4ae --- /dev/null +++ b/mise.toml @@ -0,0 +1,3 @@ +[tools] +node = "lts" +bun = "1" diff --git a/package-lock.json b/package-lock.json index f778081..e6bcf7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12952,36 +12952,6 @@ } } }, - "node_modules/nitro/node_modules/chokidar": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", - "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", - "extraneous": true, - "license": "MIT", - "dependencies": { - "readdirp": "^5.0.0" - }, - "engines": { - "node": ">= 20.19.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/nitro/node_modules/readdirp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.0.0.tgz", - "integrity": "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==", - "extraneous": true, - "license": "MIT", - "engines": { - "node": ">= 20.19.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/nitro/node_modules/unstorage": { "version": "2.0.0-alpha.7", "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-2.0.0-alpha.7.tgz", @@ -16552,20 +16522,6 @@ } } }, - "node_modules/vite-tsconfig-paths/node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "extraneous": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "node_modules/vitefu": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.3.tgz",