Skip to content

Commit

Permalink
rename setup-pnpm to reusable actions
Browse files Browse the repository at this point in the history
  • Loading branch information
victory-sokolov committed Jan 4, 2025
1 parent 81eec30 commit 789c00b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 29 deletions.
18 changes: 18 additions & 0 deletions .github/actions/install-deps/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Setup pnpm Reusable Workflow
description: Install pnpm and dependencies

runs:
using: composite
steps:
- name: Checkout code
uses: actions/[email protected]

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: '9.15'
run_install: false

- name: Install Dependencies
shell: sh
run: pnpm install
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
id: nvm

- name: Setup pnpm
uses: ./.github/workflows/setup-pnpm.yml
uses: ./.github/actions/install-deps

- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }}
uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
- uses: actions/[email protected]
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}

- name: Setup pnpm
uses: ./.github/workflows/setup-pnpm.yml
uses: ./.github/actions/install-deps

- name: Release new version to NPM
run: pnpm build && pnpm semantic-release
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/setup-pnpm.yaml

This file was deleted.

0 comments on commit 789c00b

Please sign in to comment.