Skip to content

Commit daf5e5b

Browse files
committed
chore(gh-pages): install latest emoji-picker-react before publishing pages
1 parent 8902804 commit daf5e5b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/deploy-gh-pages.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ jobs:
8080
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
8181
git config user.name "github-actions[bot]"
8282
83+
- name: Install latest emoji-picker-react in clone
84+
shell: bash
85+
run: |
86+
set -euo pipefail
87+
cd /tmp/ghpages
88+
npm install emoji-picker-react@${{ steps.read_version.outputs.PACKAGE_VERSION }} --no-audit --no-fund
89+
8390
- name: Install dependencies in clone
8491
shell: bash
8592
run: |
@@ -94,7 +101,8 @@ jobs:
94101
run: |
95102
set -euo pipefail
96103
cd /tmp/ghpages
97-
git add package.json || true
104+
# Stage both package.json and package-lock.json if present
105+
git add package.json package-lock.json || true
98106
if git diff --staged --quiet; then
99107
echo "No changes to commit"
100108
else

0 commit comments

Comments
 (0)