name: Node set up composite description: Will set up Node and install all packages by caching node_modules runs: using: 'composite' steps: - name: Cache node_modules uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 id: cache-node_modules with: path: node_modules key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/actions/node-npm-setup/action.yml') }} - name: Setup Node.js uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 with: node-version-file: 'package.json' cache: npm - name: Install dependencies if: ${{ steps.cache-node_modules.outputs.cache-hit != 'true' }} shell: bash run: npm ci