From b43d61be82141f7b59b62942f6777e1fdf5f28ca Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 28 Mar 2022 03:33:42 +0800 Subject: [PATCH] ci: enable node_modules cache --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b9954a12..86403008c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,11 @@ jobs: uses: actions/setup-node@v1 with: node-version: 14.x + - name: Cache node modules + uses: actions/cache@v2 + with: + path: .yarn/cache + key: ${{ runner.os }}-deps-${{ hashFiles('**/package.json') }} - name: Config run: | [[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml