Skip to content

Commit bb8c686

Browse files
chore: add post-merge (#1113)
* chore: add post-merge * ci: update pnpm version and setup pnpm config
1 parent 62f912a commit bb8c686

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,21 @@ jobs:
2020
fetch-depth: 0
2121

2222
- name: Install pnpm
23-
uses: pnpm/action-setup@v4.0.0
23+
uses: pnpm/action-setup@v4
2424
with:
25-
version: 8
25+
version: 9
26+
run_install: false
2627

2728
- name: Set up Node
2829
uses: actions/setup-node@v4
2930
with:
3031
node-version: lts/*
3132
cache: 'pnpm'
3233

34+
- name: Setup pnpm config
35+
shell: bash
36+
run: pnpm config set store-dir ~/.pnpm-store
37+
3338
- name: Install dependencies
3439
run: pnpm install
3540

.husky/post-merge

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set -e
2+
3+
if git diff --name-only HEAD@{1} HEAD | grep --silent '^pnpm-lock\.yaml'; then
4+
echo "📦 pnpm-lock.yaml was changed."
5+
echo "Running pnpm install to update your dependencies..."
6+
pnpm install
7+
fi

0 commit comments

Comments
 (0)