Skip to content

[Repo Assist] [Eng] Add NuGet and npm caching to CI workflow #4486

@github-actions

Description

@github-actions

🤖 This PR was created by Repo Assist, an automated AI assistant.

Summary

Adds package caching to all CI jobs to avoid re-downloading NuGet and npm packages on every run.

Changes

  • cache: true added to all actions/setup-dotnet@v5 steps — enables automatic NuGet package caching keyed on the project lock files
  • cache: 'npm' added to all actions/setup-node@v5 steps — enables npm cache using package-lock.json

Impact

Affects all CI jobs: verify-linting, restore-project, build-javascript (×2 platforms), build-typescript, build-integration, build-standalone, build-python (×6 matrix), build-rust (×3 matrix), build-dart, build-beam, and analyzers (×4 matrix).

NuGet packages (FCS, FSharp.Core, etc.) are large — caching them should meaningfully reduce per-job setup time after the first run on a given lockfile state.

No risk

These changes only affect the CI setup phase; they do not touch build scripts, source code, or test logic.


Warning

Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 23980596722 -n agent -D /tmp/agent-23980596722

# Create a new branch
git checkout -b repo-assist/eng-ci-caching-2026-04-2eb20ff86d846c03 main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-23980596722/aw-repo-assist-eng-ci-caching-2026-04.patch

# Push the branch and create the pull request
git push origin repo-assist/eng-ci-caching-2026-04-2eb20ff86d846c03
gh pr create --title '[Repo Assist] [Eng] Add NuGet and npm caching to CI workflow' --base main --head repo-assist/eng-ci-caching-2026-04-2eb20ff86d846c03 --repo fable-compiler/Fable

Note

🔒 Integrity filter blocked 84 items

The following items were blocked because they don't meet the GitHub integrity level.

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by Repo Assist · ● 7.6M ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@346204513ecfa08b81566450d7d599556807389f

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions