mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
Bumps [Alfresco/alfresco-build-tools](https://github.com/alfresco/alfresco-build-tools) from 8.18.2 to 8.18.3.
- [Release notes](https://github.com/alfresco/alfresco-build-tools/releases)
- [Commits](e524cd3bb3...247f59bac1
)
---
updated-dependencies:
- dependency-name: Alfresco/alfresco-build-tools
dependency-version: 8.18.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
name: 'Setup'
|
|
description: 'Initialize cache, env var load'
|
|
inputs:
|
|
enable-cache:
|
|
description: 'enable caching'
|
|
required: false
|
|
type: boolean
|
|
default: 'true'
|
|
enable-node-modules-cache:
|
|
description: 'enable caching for node modules'
|
|
required: false
|
|
type: boolean
|
|
default: 'true'
|
|
act:
|
|
description: 'enable act debug'
|
|
required: false
|
|
type: boolean
|
|
default: 'false'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: install NPM
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache-dependency-path: package-lock.json
|
|
- name: get latest tag sha
|
|
id: tag-sha
|
|
uses: Alfresco/alfresco-build-tools/.github/actions/git-latest-tag@247f59bac145315d38078f8954c763e0db57d5f1 # v8.18.3
|
|
# CACHE
|
|
- name: Node Modules cache
|
|
id: node-modules-cache
|
|
if: ${{ inputs.enable-node-modules-cache == 'true' }}
|
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
env:
|
|
cache-name: node-modules-cache
|
|
with:
|
|
path: |
|
|
node_modules
|
|
key: .npm-${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
node_modules-${{ runner.os }}-build-${{ env.cache-name }}-
|
|
node_modules-${{ runner.os }}-build-
|
|
node_modules-${{ runner.os }}-
|
|
- name: pip cache
|
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
if: ${{ inputs.enable-cache == 'true' }}
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-
|
|
restore-keys: |
|
|
${{ runner.os }}
|
|
- name: load "NPM TAG"
|
|
uses: ./.github/actions/set-npm-tag
|
|
- name: before install script
|
|
uses: ./.github/actions/before-install
|
|
with:
|
|
act: ${{ inputs.act }}
|