From 3051a72d7f041f42c08ef6b8cfd83758065fb8d7 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Sat, 13 Feb 2021 15:30:15 +0330 Subject: [PATCH] add node_modules cache --- .github/workflows/build.yml | 7 +++++++ .github/workflows/publish.yml | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a388d0a..abee027 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,6 +53,13 @@ jobs: cd master curl https://raw.githubusercontent.com/AriaMoradi/Tachidesk/android-jar/android.jar -o AndroidCompat/lib/android.jar + - name: Cache node_modules + uses: actions/cache@v2 + with: + path: | + **/react/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/react/yarn.lock') }} + - name: Build Jar and launch4j uses: eskatos/gradle-command-action@v1 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9a5e3ce..0b462dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -51,6 +51,12 @@ jobs: cd master curl https://raw.githubusercontent.com/AriaMoradi/Tachidesk/android-jar/android.jar -o AndroidCompat/lib/android.jar + - name: Cache node_modules + uses: actions/cache@v2 + with: + path: | + **/react/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - name: Build Jar and launch4j uses: eskatos/gradle-command-action@v1