Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use re-usable workflow for pnpm #96

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading