Skip to content

chore(workflow): add cache to workflows using actions/setup-node - #5697

Merged
Josh-Cena merged 4 commits into
facebook:mainfrom
oscard0m:add-cache-to-node-workflows
Oct 30, 2021
Merged

chore(workflow): add cache to workflows using actions/setup-node#5697
Josh-Cena merged 4 commits into
facebook:mainfrom
oscard0m:add-cache-to-node-workflows

Conversation

@oscard0m

Copy link
Copy Markdown
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! 💪🏾

@facebook-github-bot

Copy link
Copy Markdown
Contributor

Hi @oscard0m!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@netlify

netlify Bot commented Oct 12, 2021

Copy link
Copy Markdown

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: 96c3c6c

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/617cf0fd3e50db000765b599

😎 Browse the preview: https://deploy-preview-5697--docusaurus-2.netlify.app

@github-actions

github-actions Bot commented Oct 12, 2021

Copy link
Copy Markdown

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 75
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5697--docusaurus-2.netlify.app/

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Oct 12, 2021
@facebook-github-bot

Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

1 similar comment
@facebook-github-bot

This comment has been minimized.

@slorber slorber added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Oct 13, 2021

@slorber slorber left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @oscard0m

I agree we should try using that new cache feature and replace bahmutov/npm-install@v1.

However we are using yarn and we don't want to replace it with npm, so please don't replace yarn install by npm ci

Also why reformating quotes in this PR?

@Josh-Cena

Copy link
Copy Markdown
Collaborator

The pitfalls of script-generated PRs: you never understand what the workflow is doing😀

LGTM, if all the tests are passing let's merge and see

@Josh-Cena Josh-Cena changed the title ci(workflow): add cache to workflows using actions/setup-node chore(workflow): add cache to workflows using actions/setup-node Oct 30, 2021
@Josh-Cena
Josh-Cena merged commit 41346e0 into facebook:main Oct 30, 2021
@oscard0m

Copy link
Copy Markdown
Contributor Author

The pitfalls of script-generated PRs: you never understand what the workflow is doing😀

LGTM, if all the tests are passing let's merge and see

Thanks for helping me moving this to the last mile

@oscard0m
oscard0m deleted the add-cache-to-node-workflows branch October 30, 2021 07:28
mrizwanashiq pushed a commit to mrizwanashiq/docusaurus that referenced this pull request Jun 25, 2026
…ebook#5697)

* ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows

* Use cache: yarn

* Reformat

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants