Skip to content

Commit

Permalink
fix bug in documentation building (#2620)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Sep 10, 2024
1 parent d51beb3 commit 8b4581c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,17 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build package and documentation
run: yarn build

- name: Build NPM Package
working-directory: packages/skia
run: |
yarn build
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install & Build Docs
run: cd apps/docs; yarn build;

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ jobs:
- name: Build package
run: yarn build

- name: Build dry run release
working-directory: packages/skia
run: |
npx semantic-release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

build-android-ubuntu:
runs-on: ubuntu-latest
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@docusaurus/core": "2.4.3",
"@docusaurus/preset-classic": "2.4.3",
"@mdx-js/react": "^1.6.21",
"@shopify/react-native-skia": "link:../package/",
"@shopify/react-native-skia": "workspace:*",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
"docusaurus-preset-shiki-twoslash": "1.1.41",
Expand Down
8 changes: 1 addition & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3721,12 +3721,6 @@ __metadata:
languageName: node
linkType: hard

"@shopify/react-native-skia@link:../package/::locator=docs%40workspace%3Aapps%2Fdocs":
version: 0.0.0-use.local
resolution: "@shopify/react-native-skia@link:../package/::locator=docs%40workspace%3Aapps%2Fdocs"
languageName: node
linkType: soft

"@shopify/react-native-skia@workspace:*, @shopify/react-native-skia@workspace:packages/skia":
version: 0.0.0-use.local
resolution: "@shopify/react-native-skia@workspace:packages/skia"
Expand Down Expand Up @@ -7734,7 +7728,7 @@ __metadata:
"@docusaurus/module-type-aliases": 2.4.3
"@docusaurus/preset-classic": 2.4.3
"@mdx-js/react": ^1.6.21
"@shopify/react-native-skia": "link:../package/"
"@shopify/react-native-skia": "workspace:*"
"@svgr/webpack": ^5.5.0
"@tsconfig/docusaurus": ^1.0.4
clsx: ^1.1.1
Expand Down

0 comments on commit 8b4581c

Please sign in to comment.