- name: Setup Node
  uses: actions/setup-node@v4
  id: node
  with:
    node-version: {{#if jobIsMatrix}}$\{{ matrix.node-version }}{{else}}{{ last ciVersions }}{{/if}}
    check-latest: contains({{#if jobIsMatrix}}matrix.node-version{{else}}'{{ last ciVersions }}'{{/if}}, '.x')
    {{#if lockfile}}
    cache: npm
    {{/if}}
{{#if updateNpm}}
- name: Install Latest npm
  uses: ./.github/actions/install-latest-npm
  with:
    node: $\{{ steps.node.outputs.node-version }}
{{/if}}
