Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(workflow): add cache to workflows using actions/setup-node #5895

Closed
wants to merge 1 commit into from
Closed

ci(workflow): add cache to workflows using actions/setup-node #5895

wants to merge 1 commit into from

Conversation

oscard0m
Copy link
Contributor

Description

Add cache to workflows using actions/setup-node

Context

setup-node GitHub Action just released a new option to add cache to steps using it.

You can find the details here: https://github.blog/changelog/2021-07-02-github-actions-setup-node-now-supports-dependency-caching/


🤖 This PR has been generated automatically by this octoherd script, feel free to run it in your GitHub user/org repositories! 💪🏾

@oscard0m oscard0m requested a review from a team October 12, 2021 19:16
Copy link
Contributor

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @oscard0m!

Since we're using yarn as our package manager, should we following this https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies?

check-latest: true
cache: npm
- uses: actions/cache@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove the existing cache action?

@erezrokah erezrokah added the type: chore work needed to keep the product and development running smoothly label Oct 13, 2021
@erezrokah
Copy link
Contributor

Closing the PR per my latest comment as it's relevant for repos using npm and we're using yarn

@erezrokah erezrokah closed this Oct 18, 2021
@oscard0m
Copy link
Contributor Author

Thanks @oscard0m!

Since we're using yarn as our package manager, should we following this https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies?

Yes, you are totally right. I will apply the changes, I've been a bit busy lately.

@oscard0m
Copy link
Contributor Author

Re-opened in a new PR with changes applied: #5924

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants