From 24a6e479e4a796bcd21cd858816189837411ce5e Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 30 Jun 2022 01:06:12 -0700 Subject: [PATCH] ci: use node and pnpm in the CI --- .github/workflows/CI.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7424549..2942e0d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,7 +1,9 @@ name: CI on: - - push - - pull_request + pull_request: + push: + branches: + - master defaults: run: @@ -21,15 +23,20 @@ jobs: # - windows-latest atom_channel: [stable, beta] steps: - - uses: actions/checkout@v3 - - uses: UziTech/action-setup-atom@v1 + - name: Install Node + uses: actions/setup-node@v3 with: - channel: ${{ matrix.atom_channel }} - - name: Versions - run: apm -v - - name: Install APM dependencies + node-version: 12 + architecture: x64 + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 6 + + - name: Install and build run: | - apm install + pnpm install Lint: if: "!contains(github.event.head_commit.message, '[skip ci]')"