Skip to content

Test: CI cache

Test: CI cache #8

name: Build
on:
push:
branches: [master, develop]
tags: ['*']
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-monorepo:
runs-on: ubuntu-latest
steps:
- name: Checkout monorepo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: 'Cache build'
uses: 'actions/cache@v3'
with:
path: ~
key: ${{ runner.os }}-node-18-${{ git rev-parse HEAD }}

Check failure on line 33 in .github/workflows/build-monorepo.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build-monorepo.yml (Line: 33, Col: 16): Unrecognized named-value: 'git'. Located at position 1 within expression: git rev-parse HEAD
restore-keys: ${{ runner.os }}-node-18-