From f6b568fdfcea120b5c3dce8b85aedd06a69bb96e Mon Sep 17 00:00:00 2001 From: Olivier Louvignes Date: Sat, 16 Mar 2024 11:49:53 +0100 Subject: [PATCH] feat(update): minor changes --- .github/workflows/main.yml | 42 +++++++++++++++++++++++--------------- package.json | 1 - 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f5adbe5..440da20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,41 +12,51 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: ['16'] + node: ['lts/-1', 'lts/*'] name: Test on node@v${{ matrix.node }} steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 - - name: Setup 🔧 - uses: actions/setup-node@v2 + uses: actions/checkout@v3 + - name: Setup pnpm 🔧 + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Setup node 🔧 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} check-latest: true - cache: 'npm' + cache: 'pnpm' - name: Install 🪄 - run: npm ci + run: pnpm install --frozen-lockfile - name: Lint 🔍 - run: npm run lint + run: pnpm run lint - name: Prettier 🔍 - run: npm run prettycheck + run: pnpm run prettycheck - name: TypeScript 🔍 - run: npm run typecheck + run: pnpm run typecheck + # - name: Vitest 🔍 + # run: pnpm run spec build: runs-on: ubuntu-latest strategy: matrix: - node: ['16'] + node: ['lts/-1', 'lts/*'] name: Build on node@v${{ matrix.node }} steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 - - name: Setup 🔧 - uses: actions/setup-node@v2 + uses: actions/checkout@v3 + - name: Setup pnpm 🔧 + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Setup node 🔧 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} check-latest: true - cache: 'npm' + cache: 'pnpm' - name: Install 🪄 - run: npm ci + run: pnpm install --frozen-lockfile - name: Build 💎 - run: npm run build + run: pnpm run build diff --git a/package.json b/package.json index 0b84bf6..e0bcbc1 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ }, "devDependencies": { "@tsconfig/node-lts": "^20.1.1", - "@tsconfig/node10": "^1.0.9", "@types/debug": "^4.1.12", "@types/jest": "^29.5.12", "@types/lodash": "^4.17.0",