diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 147e339f6..36becd571 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,40 +6,33 @@ jobs: build: runs-on: ${{ matrix.os }} - strategy: + strategy: matrix: os: [ - macos-latest, - ubuntu-latest, + macos-latest, + ubuntu-latest, windows-latest ] steps: - - name: Check out Git repository - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v4 - - name: Install Node.js, NPM and Yarn - uses: actions/setup-node@v2 + - name: Setup Node + uses: actions/setup-node@v4 with: node-version: 20.11.0 - - uses: actions/setup-python@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v3 with: - python-version: '2.7' + version: 8 - - name: Build Electron app + - name: Build shell: bash env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SIGN: false run: | - yarn install --network-timeout 1000000 - yarn electron:build --publish="never" - - - name: Upload artifact - uses: actions/upload-artifact@v1.0.0 - with: - # Artifact name - name: ${{ matrix.os }}-artifact - # Directory containing files to upload - path: dist_electron \ No newline at end of file + pnpm install + pnpm build --publish="never" diff --git a/.github/workflows/lintAndTest.yaml b/.github/workflows/lintAndTest.yaml index 5ba3d11ac..adcbf6895 100644 --- a/.github/workflows/lintAndTest.yaml +++ b/.github/workflows/lintAndTest.yaml @@ -12,6 +12,11 @@ jobs: - uses: actions/setup-node@v2.1.2 with: node-version: '20.11.0' - - run: yarn install --network-timeout 1000000 - - run: yarn lint:check - - run: yarn test + + - uses: pnpm/action-setup@v3 + with: + version: 8 + + - run: pnpm install + - run: pnpm lint:check + - run: pnpm test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7ef164582..22b0c0529 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,7 +16,7 @@ jobs: macos-latest, ubuntu-latest, windows-latest - ] + ] steps: - name: Check out Git repository @@ -27,6 +27,10 @@ jobs: with: node-version: 20.11.0 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - name: Build & release Electron app shell: bash env: @@ -39,12 +43,12 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SIGN: true run: | - yarn install --network-timeout 1000000 - yarn electron:build --publish="always" + pnpm install + pnpm build - name: Upload artifact uses: actions/upload-artifact@v1.0.0 with: # Artifact name name: ${{ matrix.os }}-artifact # Directory containing files to upload - path: dist_electron \ No newline at end of file + path: release/**/* \ No newline at end of file diff --git a/.gitignore b/.gitignore index 50a93f3f3..c02f1da24 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ witnet /tests/e2e/screenshots/ sheikah-darwin-x64 /src/components.d.ts +/release # local env files .env