From 3c2f441aeaa5c4a0fca43c66b7ffab4e8092c085 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 9 Jan 2023 12:04:56 +0800 Subject: [PATCH] chore: update workflow --- .github/actions/set-up-protocol/action.yml | 52 +++++++++++----------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/.github/actions/set-up-protocol/action.yml b/.github/actions/set-up-protocol/action.yml index 8c09a0bb30c..b757eef2587 100644 --- a/.github/actions/set-up-protocol/action.yml +++ b/.github/actions/set-up-protocol/action.yml @@ -1,32 +1,34 @@ +name: 'Set Up Protocol' +description: 'Set up protocol dependencies' + runs: using: "composite" steps: - steps: - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 16 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 - - name: Install pnpm - uses: pnpm/action-setup@v2 - id: pnpm-install - with: - version: 7 - run_install: false + - name: Install pnpm + uses: pnpm/action-setup@v2 + id: pnpm-install + with: + version: 7 + run_install: false - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: Setup pnpm cache - uses: actions/cache@v3 - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + - name: Setup pnpm cache + uses: actions/cache@v3 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - - name: Install dependencies - run: pnpm install + - name: Install dependencies + run: pnpm install