File tree Expand file tree Collapse file tree 2 files changed +36
-3
lines changed Expand file tree Collapse file tree 2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change @@ -80,24 +80,57 @@ 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 : |
8693 set -euo pipefail
8794 cd /tmp/ghpages
8895 npm ci --legacy-peer-deps || npm install --no-audit --no-fund
8996
97+ - name : Build static site in clone
98+ shell : bash
99+ run : |
100+ set -euo pipefail
101+ cd /tmp/ghpages
102+ npm run build
103+
104+ - name : Export static site in clone
105+ shell : bash
106+ run : |
107+ set -euo pipefail
108+ cd /tmp/ghpages
109+ npm run export
110+
111+ - name : Copy static export to root
112+ shell : bash
113+ run : |
114+ set -euo pipefail
115+ cd /tmp/ghpages
116+ if [ -d out ]; then
117+ find . -mindepth 1 -maxdepth 1 ! -name 'out' ! -name '.git' ! -name '.gitignore' -exec rm -rf {} +
118+ cp -a out/. .
119+ rm -rf out
120+ fi
121+
90122 - name : Commit and push gh-pages changes from clone
91123 shell : bash
92124 env :
93125 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
94126 run : |
95127 set -euo pipefail
96128 cd /tmp/ghpages
97- git add package.json || true
129+ # Stage all changes (including built assets)
130+ git add .
98131 if git diff --staged --quiet; then
99132 echo "No changes to commit"
100133 else
101- git commit -m "chore(gh-pages): update emoji-picker-react to ${{ steps.read_version.outputs.PACKAGE_VERSION }}"
134+ git commit -m "chore(gh-pages): update all built assets for emoji-picker-react@ ${{ steps.read_version.outputs.PACKAGE_VERSION }}"
102135 git push origin gh-pages
103136 fi
Original file line number Diff line number Diff line change 22 "version" : " 4.15.2" ,
33 "license" : " MIT" ,
44 "main" : " dist/index.js" ,
5- "homepage" : " https://ealush.com/emoji-picker-react" ,
65 "typings" : " dist/index.d.ts" ,
6+ "homepage" : " https://ealush.com/emoji-picker-react" ,
77 "files" : [
88 " dist" ,
99 " src"
You can’t perform that action at this time.
0 commit comments