Skip to content

Commit

Permalink
ci: manually patch extract-files package for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel authored Aug 18, 2023
1 parent 095f8ce commit 8259f0d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 16.x
node-version: 18.x

- name: Download a Build Artifact
uses: actions/[email protected]
Expand All @@ -203,14 +203,20 @@ jobs:
- name: Extract Build
run: |
mkdir -p win
tar -xzf $env:GITHUB_WORKSPACE\drop\wiki-js.tar.gz -C $env:GITHUB_WORKSPACE\win --exclude=node_modules
tar -xzf $env:GITHUB_WORKSPACE\drop\wiki-js.tar.gz -C $env:GITHUB_WORKSPACE\win
copy win\node_modules\extract-files\package.json patch-extractfile.json
rmdir /S /Q win\node_modules
- name: Install Dependencies
run: |
yarn --production --frozen-lockfile --non-interactive
yarn patch-package
working-directory: win

- name: Fix patched packages
run: |
copy /y patch-extractfile.json win\node_modules\extract-files\package.json
- name: Create Bundle
run: tar -czf wiki-js-windows.tar.gz -C $env:GITHUB_WORKSPACE\win .

Expand Down

0 comments on commit 8259f0d

Please sign in to comment.