diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 2e8de8c..08f8803 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.9.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v6 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 4bd9190..a065e9e 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.9.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v6 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 dbe048d..4dc88d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,11 +45,11 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 11.9.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v6 with: - node-version: 22 + node-version-file: .tool-versions cache: 'pnpm' registry-url: 'https://registry.npmjs.org' - name: Install dependencies diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bb99b86..270ded9 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.9.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v6 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.9.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v6 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.9.0 + version: 12 - name: Install Node.js uses: actions/setup-node@v6 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/.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 a80e585..ad443f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,9 +78,11 @@ importers: '@types/node': specifier: ^22.0.0 version: 22.19.13 + linkDirectory: false publishDirectory: package packages/hosted-git-info: + linkDirectory: false publishDirectory: package packages/normalize-package-data: @@ -95,6 +97,7 @@ importers: '@types/semver': specifier: ^7.7.1 version: 7.7.1 + linkDirectory: false publishDirectory: package packages/stream-utils: @@ -102,6 +105,7 @@ importers: '@types/node': specifier: ^22.0.0 version: 22.19.13 + linkDirectory: false publishDirectory: package packages: