Skip to content

Commit

Permalink
chore: add post-merge (#1113)
Browse files Browse the repository at this point in the history
* chore: add post-merge

* ci: update pnpm version and setup pnpm config
  • Loading branch information
jpedroschmitz authored Oct 27, 2024
1 parent 62f912a commit bb8c686
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,21 @@ jobs:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
run_install: false

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'pnpm'

- name: Setup pnpm config
shell: bash
run: pnpm config set store-dir ~/.pnpm-store

- name: Install dependencies
run: pnpm install

Expand Down
7 changes: 7 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -e

if git diff --name-only HEAD@{1} HEAD | grep --silent '^pnpm-lock\.yaml'; then
echo "📦 pnpm-lock.yaml was changed."
echo "Running pnpm install to update your dependencies..."
pnpm install
fi

0 comments on commit bb8c686

Please sign in to comment.