diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55204c5d..535d9a0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,18 +15,10 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Install pnpm - uses: pnpm/action-setup@v6 + - name: Setup pnpm + uses: pnpm/setup@v1 with: - version: 11.21.0 - - - name: Use Node.js - uses: actions/setup-node@v6 - with: - node-version: 24.15.0 - - - name: Install dependencies - run: pnpm install --frozen-lockfile + cache: true - name: Build run: pnpm build @@ -38,18 +30,10 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Install pnpm - uses: pnpm/action-setup@v6 - with: - version: 11.21.0 - - - name: Use Node.js - uses: actions/setup-node@v6 + - name: Setup pnpm + uses: pnpm/setup@v1 with: - node-version: 24.15.0 - - - name: Install dependencies - run: pnpm install --frozen-lockfile + cache: true - name: Format run: pnpm fmt:check @@ -61,18 +45,10 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Install pnpm - uses: pnpm/action-setup@v6 - with: - version: 11.21.0 - - - name: Use Node.js - uses: actions/setup-node@v6 + - name: Setup pnpm + uses: pnpm/setup@v1 with: - node-version: 24.15.0 - - - name: Install dependencies - run: pnpm install --frozen-lockfile + cache: true - name: Lint run: pnpm lint:check @@ -84,18 +60,10 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Install pnpm - uses: pnpm/action-setup@v6 - with: - version: 11.21.0 - - - name: Use Node.js - uses: actions/setup-node@v6 + - name: Setup pnpm + uses: pnpm/setup@v1 with: - node-version: 24.15.0 - - - name: Install dependencies - run: pnpm install --frozen-lockfile + cache: true - name: Build libraries run: pnpm build @@ -110,18 +78,10 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Install pnpm - uses: pnpm/action-setup@v6 + - name: Setup pnpm + uses: pnpm/setup@v1 with: - version: 11.21.0 - - - name: Use Node.js - uses: actions/setup-node@v6 - with: - node-version: 24.15.0 - - - name: Install dependencies - run: pnpm install --frozen-lockfile + cache: true - name: Build run: pnpm build diff --git a/.github/workflows/deploy_examples.yml b/.github/workflows/deploy_examples.yml index 92d8e2fd..46f1de9e 100644 --- a/.github/workflows/deploy_examples.yml +++ b/.github/workflows/deploy_examples.yml @@ -26,17 +26,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 - - name: Install pnpm - uses: pnpm/action-setup@v6 + - name: Setup pnpm + uses: pnpm/setup@v1 with: - version: 11.21.0 - - name: Set up Node - uses: actions/setup-node@v6 - with: - node-version: 24.15.0 - cache: 'pnpm' - - name: Install dependencies - run: pnpm install --frozen-lockfile + cache: true - name: Build run: pnpm run build - name: Setup Pages diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 18b4a45c..12d0a8e0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,20 +17,10 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Install pnpm - uses: pnpm/action-setup@v6 + - name: Setup pnpm + uses: pnpm/setup@v1 with: - version: 11.21.0 - - - name: Use Node.js - uses: actions/setup-node@v6 - with: - node-version: 24.15.0 - registry-url: 'https://registry.npmjs.org' - scope: '@alleninstitute' - - - name: Install dependencies - run: pnpm install --frozen-lockfile + cache: true - name: Build run: pnpm build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c864c242..eede4f16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,16 +26,9 @@ jobs: ssh-key: ${{ secrets.SERVICE_ACCOUNT_SSH_KEY }} fetch-depth: 0 - - uses: pnpm/action-setup@v6 + - uses: pnpm/setup@v1 with: - version: 11.21.0 - - - uses: actions/setup-node@v6 - with: - node-version: 24.15.0 - - - name: Install dependencies - run: pnpm install --frozen-lockfile + cache: true - name: Set git user run: | diff --git a/package.json b/package.json index 626adb08..ace8f2c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,14 @@ { "name": "@alleninstitute/vis", "type": "module", + "packageManager": "pnpm@11.21.0", + "devEngines": { + "runtime": { + "name": "node", + "version": "24.15.0", + "onFail": "warn" + } + }, "scripts": { "build": "pnpm -r run --no-bail build", "dev": "pnpm -r --parallel run dev",