diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 8628ff2..b633dde 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -21,11 +21,11 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 11.11.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v7 with: - node-version: 22 + node-version-file: .tool-versions cache: 'pnpm' - name: Check package.json files run: pnpm --package=@trigen/lint-package-json dlx lint-package-json --monorepo diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 5cc2056..d19de9d 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -13,11 +13,11 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 11.11.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v7 with: - node-version: 22 + node-version-file: .tool-versions cache: 'pnpm' - name: Install dependencies run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad9e533..0890da3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,11 +67,11 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 11.11.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version-file: .tool-versions cache: 'pnpm' - name: Install dependencies run: pnpm install diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 56dceb8..b953082 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,11 +14,11 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 11.11.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v7 with: - node-version: 22 + node-version-file: .tool-versions cache: 'pnpm' - name: Install dependencies run: pnpm install @@ -33,11 +33,11 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 11.11.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v7 with: - node-version: 22 + node-version-file: .tool-versions cache: 'pnpm' - name: Install dependencies run: pnpm install @@ -45,25 +45,33 @@ jobs: run: pnpm lint unit: runs-on: ubuntu-latest - name: unit + name: unit (${{ matrix.node-version || '.tool-versions' }}) + strategy: + matrix: + # The least Node.js the packages declare, and the one the repository is developed on + include: + - node-version: 22 + - node-version-file: .tool-versions steps: - name: Checkout the repository uses: actions/checkout@v7 - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 11.11.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v7 with: - node-version: 22 + node-version: ${{ matrix.node-version }} + node-version-file: ${{ matrix.node-version-file }} cache: 'pnpm' - name: Install dependencies run: pnpm install - name: Run tests run: pnpm test:unit + # One upload per commit, from the leg of the version the repository is developed on - name: Collect coverage uses: coverallsapp/github-action@main - if: success() + if: success() && matrix.node-version-file with: fail-on-error: false diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 2d95ff8..f4db589 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -23,11 +23,11 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 11.11.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v7 with: - node-version: 22 + node-version-file: .tool-versions cache: 'pnpm' - name: Install dependencies run: pnpm install diff --git a/.tool-versions b/.tool-versions index 581237a..23dfdeb 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -pnpm 11.9.0 -nodejs 22.23.0 +pnpm 12.9.1 +nodejs 26.10.0 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index edbe596..8231689 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -89,6 +89,7 @@ importers: find-up-simple: specifier: ^1.0.1 version: 1.0.1 + linkDirectory: false publishDirectory: package packages/core: @@ -139,6 +140,7 @@ importers: test: specifier: workspace:^ version: link:../test + linkDirectory: false publishDirectory: package packages/github: @@ -153,6 +155,7 @@ importers: test: specifier: workspace:^ version: link:../test + linkDirectory: false publishDirectory: package packages/github-action: @@ -179,6 +182,7 @@ importers: test: specifier: workspace:^ version: link:../test + linkDirectory: false publishDirectory: package packages/node-gha: @@ -199,6 +203,7 @@ importers: test: specifier: workspace:^ version: link:../test + linkDirectory: false publishDirectory: package packages/npm: @@ -216,6 +221,7 @@ importers: test: specifier: workspace:^ version: link:../test + linkDirectory: false publishDirectory: package packages/pnpm: @@ -236,6 +242,7 @@ importers: test: specifier: workspace:^ version: link:../test + linkDirectory: false publishDirectory: package packages/simple-github-release: @@ -264,6 +271,7 @@ importers: picocolors: specifier: ^1.0.0 version: 1.1.1 + linkDirectory: false publishDirectory: package packages/test: