From dfa7f8090cbacc6100fc32a35818063526a18cf8 Mon Sep 17 00:00:00 2001 From: itsMapleLeaf <19603573+itsMapleLeaf@users.noreply.github.com> Date: Fri, 14 Oct 2022 13:35:12 -0500 Subject: [PATCH] update github workflows --- .github/workflows/main.yml | 18 +++++++++++++----- .github/workflows/release.yml | 13 ++++++++----- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5d1a71a..23c8d78 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,11 +35,19 @@ jobs: name: ${{ matrix.command.name }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: checkout + uses: actions/checkout@v3 + + - name: setup pnpm + uses: pnpm/action-setup@v2 with: - # https://github.com/actions/setup-node#supported-version-syntax - node-version: "16" - - run: npm i -g pnpm@7.5.0 + version: 7.13.4 + + - name: setup node + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: pnpm + - run: pnpm install --frozen-lockfile - run: ${{ matrix.command.run }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee7261b..164ee1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,15 +14,18 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + + - name: setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 7.13.4 - name: setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 - - - name: install pnpm - run: npm install -g pnpm + cache: pnpm - name: install deps run: pnpm install --frozen-lockfile