From aa59ff7a2bcb0e4685efb1c52b83d21e806c203a Mon Sep 17 00:00:00 2001 From: Michael van Tellingen Date: Fri, 24 Jan 2025 11:25:03 +0100 Subject: [PATCH] ci: use re-usable workflow for pnpm --- .github/workflows/release.yml | 37 +++++------------------------------ 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bcff73..36b4ad4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,16 +13,7 @@ jobs: uses: actions/checkout@v3 - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: 20 - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 8 - run_install: true + uses: labd/gh-actions-typescript/pnpm-install@main - name: Lint run: pnpm lint @@ -40,18 +31,10 @@ jobs: - name: Checkout repo uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 8 - run_install: true - - - name: Use Node ${{ matrix.node }} - uses: actions/setup-node@v3 + - name: Set up Node.js + uses: labd/gh-actions-typescript/pnpm-install@main with: node-version: ${{ matrix.node }} - cache: "pnpm" - name: Test run: pnpm run test:ci @@ -70,18 +53,8 @@ jobs: with: fetch-depth: 0 - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 8 - run_install: true - - - name: Install node.js - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: "pnpm" + - name: Set up Node.js + uses: labd/gh-actions-typescript/pnpm-install@main - name: Create and publish versions uses: changesets/action@v1