From c4c3576054a920690cf8f3bf90b0b29e5464abb0 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 24 Apr 2023 13:50:53 -0700 Subject: [PATCH] ci: setup the executable with node 18 --- .github/workflows/CI.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1862a2d2..438d1bee 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -64,6 +64,21 @@ jobs: run: | 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 uses: actions/setup-node@v3 with: @@ -80,21 +95,6 @@ jobs: run: | 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: needs: Test if: startsWith(github.ref, 'refs/tags/')