From 3a9eeba787f099a502d06c0504e0cbae1bc068fe 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 | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cce5faa..8ec5429 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,15 +13,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - - uses: pnpm/action-setup@v4 - name: Install pnpm - id: pnpm-install - with: - run_install: true + uses: labd/gh-actions-typescript/pnpm-install@main - name: Lint run: pnpm lint @@ -39,17 +31,10 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - name: Install pnpm - id: pnpm-install - with: - run_install: true - - - name: Use Node ${{ matrix.node }} - uses: actions/setup-node@v4 + - name: Set up Node.js + uses: labd/gh-actions-typescript/pnpm-install@main with: node-version: ${{ matrix.node }} - cache: "pnpm" - name: Build run: pnpm build @@ -69,17 +54,8 @@ jobs: with: fetch-depth: 0 - - uses: pnpm/action-setup@v4 - name: Install pnpm - id: pnpm-install - with: - run_install: true - - - name: Install node.js - uses: actions/setup-node@v4 - 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