From 2429aeace2f14d49d9ee36b9078fc555656d0c06 Mon Sep 17 00:00:00 2001 From: Thada Wangthammang Date: Fri, 17 May 2024 15:03:19 +0700 Subject: [PATCH] fix(github-actions): temp disable npm global cache until know how to --- .github/workflows/e2e.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b9157a2..612a4a9 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -161,15 +161,27 @@ jobs: - name: Install dependencies run: pnpm install - - uses: actions/cache@v4 - name: Setup npm global cache - with: - path: ~/.npm - key: ${{ runner.os }}-build-azure-functions-core-tools-v4 + # - uses: actions/cache@v4 + # name: Cache global npm packages + # with: + # # a ternary operator + # # Ref: https://docs.github.com/en/actions/learn-github-actions/expressions#example + # path: ${{ runner.os == 'Windows' && '~/AppData/Roaming/npm-cache' || '~/.npm' }} + # key: ${{ runner.os }}-node-global-npm + # restore-keys: | + # ${{ runner.os }}-node-global-npm - name: Install Azure Functions Core Tools run: npm i -g azure-functions-core-tools@4 --unsafe-perm true + # - name: Cache global node_modules + # uses: actions/cache@v4 + # with: + # path: ${{ runner.os == 'Windows' && '~/AppData/Roaming/npm/node_modules' || '/usr/local/lib/node_modules' }} + # key: ${{ runner.os }}-node-${{ github.sha }}-global-modules + # restore-keys: | + # ${{ runner.os }}-node-global-modules + - name: Azure Functions Version run: func --version