Skip to content

Caching packages dependencies in composite actions #329

Closed
@sergei-startsev

Description

@sergei-startsev

Caching packages dependencies doesn't work in composite actions today. Action composition allows to reduce duplication in workflows and make maintenance easier, however setup-node with cache option doesn't support them – cache is always not found.

runs:
  using: 'composite'
  steps:
    - name: Use Node.js
      uses: actions/setup-node@v2
      with:
        node-version: '14'
        cache: yarn
/usr/local/bin/yarn --version
1.22.11
/usr/local/bin/yarn cache dir
/home/runner/.cache/yarn/v6
yarn cache is not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions