Skip to content

Commit

Permalink
ci: use re-usable workflow for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mvantellingen committed Jan 24, 2025
1 parent 4e2e9ea commit 49d2d3e
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 49d2d3e

Please sign in to comment.