Skip to content

Commit

Permalink
fix(github-actions): temp disable npm global cache until know how to
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed May 17, 2024
1 parent beb3602 commit 2429aea
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2429aea

Please sign in to comment.