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 43f53b4 commit aa59ff7
Showing 1 changed file with 5 additions and 32 deletions.
37 changes: 5 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit aa59ff7

Please sign in to comment.