From 750b8161612fb44bc4efe309522cd549c8655edc Mon Sep 17 00:00:00 2001 From: void2610 Date: Fri, 6 Oct 2023 22:14:31 +0900 Subject: [PATCH 1/4] Create test.txt --- test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..72943a1 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +aaa From 4dc6e1a2cee2db96721c83d48ce254411144e0dd Mon Sep 17 00:00:00 2001 From: void2610 Date: Fri, 6 Oct 2023 22:16:15 +0900 Subject: [PATCH 2/4] Update frontend.yml --- .github/workflows/frontend.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 3a7e526..f370ed9 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -15,6 +15,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Create frontend directory + run: mkdir frontend + - name: Get npm cache directory path id: npm-cache-dir-path run: echo "dir=$(npm config get cache)" >> $GITHUB_ENV @@ -23,7 +26,7 @@ jobs: id: npm-cache with: path: ${{ steps.npm-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-npm-${{ hashFiles('frontend/package-lock.json') }} restore-keys: | ${{ runner.os }}-npm- From 57cd7a2336d6ea2131326231e0751fbb04cb7988 Mon Sep 17 00:00:00 2001 From: void2610 Date: Fri, 6 Oct 2023 22:19:49 +0900 Subject: [PATCH 3/4] Update frontend.yml --- .github/workflows/frontend.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index f370ed9..b73baef 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -9,15 +9,12 @@ jobs: frontend: defaults: run: - working-directory: frontend + working-directory: ./ runs-on: ubuntu-latest timeout-minutes: 5 steps: - uses: actions/checkout@v4 - - name: Create frontend directory - run: mkdir frontend - - name: Get npm cache directory path id: npm-cache-dir-path run: echo "dir=$(npm config get cache)" >> $GITHUB_ENV From d17cf3430a64d23282126f986d4f46ef443c839a Mon Sep 17 00:00:00 2001 From: void2610 Date: Fri, 6 Oct 2023 22:21:11 +0900 Subject: [PATCH 4/4] Update frontend.yml --- .github/workflows/frontend.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index b73baef..f7694f8 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -22,10 +22,9 @@ jobs: - uses: actions/cache@v2 id: npm-cache with: - path: ${{ steps.npm-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-npm-${{ hashFiles('frontend/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-npm- + path: ~/.npm + key: Linux-npm-${{ runner.os }}-${{ hashFiles('frontend/package-lock.json') }} + restore-keys: Linux-npm-${{ runner.os }}- - name: Install packages run: npm install