Skip to content

Commit 9eec22b

Browse files
committed
chore: publish config
1 parent 112e8c2 commit 9eec22b

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
git config user.name ${{ github.actor }}
2424
git config user.email ${{ github.actor }}@users.noreply.github.com
2525
26+
- name: Install native deps for node-canvas (macOS)
27+
if: runner.os == 'macOS'
28+
run: |
29+
brew install pkg-config cairo pango libpng jpeg giflib librsvg
30+
echo "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:/usr/local/share/pkgconfig:/opt/homebrew/share/pkgconfig" >> $GITHUB_ENV
31+
echo "LDFLAGS=-L/opt/homebrew/lib -L/usr/local/lib" >> $GITHUB_ENV
32+
echo "CPPFLAGS=-I/opt/homebrew/include -I/usr/local/include" >> $GITHUB_ENV
33+
2634
- name: Use Node.js ${{ matrix.node-version }}
2735
uses: actions/setup-node@v3
2836
with:

.github/workflows/unit-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
cache: 'npm'
2727
cache-dependency-path: './common/config/rush/pnpm-lock.yaml'
2828

29+
- name: Install native deps for node-canvas (macOS)
30+
if: runner.os == 'macOS'
31+
run: |
32+
brew install pkg-config cairo pango libpng jpeg giflib librsvg
33+
echo "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:/usr/local/share/pkgconfig:/opt/homebrew/share/pkgconfig" >> $GITHUB_ENV
34+
echo "LDFLAGS=-L/opt/homebrew/lib -L/usr/local/lib" >> $GITHUB_ENV
35+
echo "CPPFLAGS=-I/opt/homebrew/include -I/usr/local/include" >> $GITHUB_ENV
36+
2937
# # 查看字体
3038
# - name: View Fonts
3139
# run: |

packages/vrender-kits/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@internal/eslint-config": "workspace:*",
3333
"@internal/ts-config": "workspace:*",
3434
"@rushstack/eslint-patch": "~1.1.4",
35-
"canvas": "2.11.2",
35+
"canvas": "2.12.1",
3636
"node-fetch": "2.6.6",
3737
"react": "^18.0.0",
3838
"react-dom": "^18.0.0",

packages/vrender/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@internal/ts-config": "workspace:*",
3535
"@rushstack/eslint-patch": "~1.1.4",
3636
"@visactor/vutils": "1.0.6",
37-
"canvas": "2.11.2",
37+
"canvas": "2.12.1",
3838
"react": "^18.0.0",
3939
"react-dom": "^18.0.0",
4040
"@types/react": "^18.0.0",

0 commit comments

Comments
 (0)