ci: setup the executable with node 18

This commit is contained in:
Amin Yahyaabadi 2023-04-24 13:50:53 -07:00
parent 4aa1b0647c
commit c4c3576054
1 changed files with 15 additions and 15 deletions

View File

@ -64,6 +64,21 @@ jobs:
run: | run: |
pnpm run test pnpm run test
# Create self-contained executable that bundles Nodejs
- name: Create Executable
if: "${{ contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}"
run: |
pnpm run pack.exe
- name: Upload Artifacts
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
uses: actions/upload-artifact@v3
with:
path: |
./exe
./dist
retention-days: 1
- name: Setup Node 12 - name: Setup Node 12
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
@ -80,21 +95,6 @@ jobs:
run: | run: |
node ./dist/node16/setup-cpp.js --help node ./dist/node16/setup-cpp.js --help
# Create self-contained executable that bundles Nodejs
- name: Create Executable
if: "${{ contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}"
run: |
pnpm run pack.exe
- name: Upload Artifacts
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
uses: actions/upload-artifact@v3
with:
path: |
./exe
./dist
retention-days: 1
Release: Release:
needs: Test needs: Test
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')