ci: manually patch extract-files package for windows build
This commit is contained in:
parent
095f8cec7a
commit
8259f0dee6
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -192,7 +192,7 @@ jobs:
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v3.6.0
|
||||
with:
|
||||
node-version: 16.x
|
||||
node-version: 18.x
|
||||
|
||||
- name: Download a Build Artifact
|
||||
uses: actions/download-artifact@v3.0.2
|
||||
@ -203,7 +203,9 @@ 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: |
|
||||
@ -211,6 +213,10 @@ jobs:
|
||||
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 .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user