Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
edlu77 committed Feb 13, 2024
1 parent 762c165 commit 417bf71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/prepare-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
if: ${{ inputs.skip-node-js == 'false' }}
uses: ./.github/actions/setup-node-js
- name: Configure nx
uses: nrwl/nx-set-shas@v3
uses: nrwl/nx-set-shas@v4
with:
main-branch-name: ${{ inputs.main-branch-name }}

Expand Down
12 changes: 6 additions & 6 deletions .github/actions/setup-node-js/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ inputs:
node-version:
description: Node.js version
required: false
default: '16'
default: '20'

runs:
using: composite
steps:
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Cache .npm
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/website/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache node_modules
id: modules_cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/website/package-lock.json') }}
- name: Install dependencies
shell: bash
if: ${{ steps.modules_cache.outputs.cache-hit != 'true' }}
Expand Down

0 comments on commit 417bf71

Please sign in to comment.