Repository navigation
Releases
v9.0.1
Highlights
COURSIER_CACHE is respected
If the COURSIER_CACHE environment variable is set when the action runs, for example in your workflow's env, the action now caches that directory. Before, it always cached the default OS-dependent location, which coursier doesn't use when COURSIER_CACHE is set. The path input still takes precedence.
OS and CPU architecture in the sbt, mill and Ammonite cache keys
The sbt, mill and Ammonite caches are stored at the same paths on Linux and macOS. Because of that, the fallback keys could restore a cache that was saved on a different OS or CPU architecture, even though these caches can hold platform-specific files such as native launchers. Their keys now include the runner's OS and architecture right after the cache name:
sbt-ivy2-cache-linux-x64-test-matrix-<matrix hash>-<build files hash>
The coursier cache keys don't change. Its path already differs per OS, and its content can be shared across architectures.
Note
The first run after upgrading starts the sbt, mill and Ammonite caches from scratch, because the new keys don't share a prefix with the old ones. Later runs restore and save caches as usual.
Missing inputs declared in action.yml
The action already read extraCoursierKey, extraCoursierHashedContent and read-cs-cache-files, but action.yml didn't declare them, so GitHub warned about unexpected inputs whenever they were passed. All three are now declared and documented in the README:
extraCoursierKey: an extra value added only to the coursier cache keyextraCoursierHashedContent: extra content hashed only into the coursier cache keyread-cs-cache-files(defaulttrue): set it tofalseto ignore.github/cs-cache-files
Fixes and internal changes
- The coursier cache location is now detected with
process.platforminstead of runninguname, so the action no longer needs aunameexecutable onPATH. Windows runners without Git Bash don't provide one. - Extra hashed content (
extraHashedContentand related inputs) is now hashed in memory. Before, it was written to a temporary.tmp-cs-cache-keyfile in the workspace, and that file was left behind if hashing failed. Keys that combine build files with extra hashed content may change once. The previous cache is still restored through the fallback keys. - Removed dead and duplicated code:
extraMillFileswas added to the mill globs twice, and an unused helper was dropped. The@actions/execdependency is gone. - Moved cache key computation into its own module and added unit tests for cache keys and the cache mode handling (
npm testnow runs them).
Full Changelog: v9.0.0...v9.0.1
9.0.0
Highlights
This is a major release because existing caches will mostly not be reused: the Coursier cache path changed, and the way cache keys are computed changed for some setups. Expect cache misses on the first run after upgrading. Workflow files need no other changes.
Only Coursier's v1 directory is cached (#875)
The action now caches only the Coursier cache itself (~/.cache/coursier/v1 on Linux, ~/Library/Caches/Coursier/v1 on macOS, ~\AppData\Local\Coursier\Cache\v1 on Windows). It no longer caches the whole Coursier directory, which also holds the archive cache (arc). Its contents are re-extracted from the archives in v1 when needed.
This makes caches smaller and saving them more reliable.
Same cache keys with CRLF and LF line endings (#875)
When build files are hashed for cache keys, CRLF line endings are now treated as LF. A Windows job that checks files out with core.autocrlf therefore gets the same keys as Linux and macOS jobs. Keys for files that already use LF line endings don't change.
Better Mill detection (#878)
The Mill cache (~/.cache/mill) is now enabled when any of these files are found:
build.mill,build.mill.yaml,build.mill.scalamill-build/build.mill,mill-build/build.mill.yaml.mill-*(like.mill-version) and.config/mill-*(like.config/mill-version)mill,mill.bat,millwlauncher scripts
Before, only .mill-version and the mill script were checked.
The Mill cache key also includes the sub-module build files (**/package.mill, **/package.mill.yaml, **/package.mill.scala). Changing a sub-module's build now updates the cache.
Documentation
- The README has been largely rewritten. It now covers which directories get cached and when, how cache keys are built, and every input and output, with examples (#877).
- Ammonite cache support is deprecated and no longer documented. It still works for now (
~/.ammonite,ammoniteScripts,ignoreAmmonite, …), but may be removed in a future release (#877).
Updates / maintenance
- Bump @types/node from 26.6.1 to 26.6.5 by @dependabot[bot] in #862
- Bump js-yaml from 5.4.2 to 5.4.3 by @dependabot[bot] in #863
- Bump @actions/cache from 6.2.0 to 6.3.0 by @dependabot[bot] in #864
- Bump @typescript-eslint/parser from 8.70.0 to 8.72.0 by @dependabot[bot] in #872
- Bump eslint from 10.10.0 to 10.13.0 by @dependabot[bot] in #870
- Update dist by @github-actions[bot] in #867
- Bump js-yaml from 5.4.3 to 5.5.0 by @dependabot[bot] in #868
- Bump @typescript-eslint/eslint-plugin from 8.70.0 to 8.72.0 by @dependabot[bot] in #871
- Update dist by @github-actions[bot] in #876
Full Changelog: v8.2.0...v9.0.0
8.2.0
What's Changed
- Add cache mode support by @alexarchambault in #861
Updates / maintenance
- Bump actions/setup-node from 6 to 7 by @dependabot[bot] in #843
- Bump @actions/cache from 6.0.0 to 6.0.1 by @dependabot[bot] in #841
- Bump @types/node from 25.7.0 to 25.9.1 by @dependabot[bot] in #840
- Bump @typescript-eslint/parser from 8.59.3 to 8.59.4 by @dependabot[bot] in #838
- Bump eslint from 10.2.0 to 10.4.0 by @dependabot[bot] in #837
- Bump actions/checkout from 6 to 7 by @dependabot[bot] in #842
- Bump @types/node from 25.9.1 to 26.5.1 by @dependabot[bot] in #848
- Bump @actions/cache from 6.0.1 to 6.2.0 by @dependabot[bot] in #847
- Bump @typescript-eslint/parser from 8.59.4 to 8.70.0 by @dependabot[bot] in #846
- Bump eslint from 10.4.0 to 10.10.0 by @dependabot[bot] in #850
- Bump @typescript-eslint/eslint-plugin from 8.59.3 to 8.70.0 by @dependabot[bot] in #849
- Reject mixed dist and source changes by @alexarchambault in #851
- Serialize dist update workflows by @alexarchambault in #853
- Update dist by @github-actions[bot] in #854
- Bump js-yaml from 4.1.1 to 5.4.2 by @dependabot[bot] in #859
- Bump @vercel/ncc from 0.38.4 to 0.45.0 by @dependabot[bot] in #857
- Bump @types/node from 26.5.1 to 26.6.1 by @dependabot[bot] in #855
- Bump prettier from 3.8.3 to 3.9.10 by @dependabot[bot] in #856
- Update dist by @github-actions[bot] in #860
- Bump typescript from 6.0.3 to 7.0.2 by @dependabot[bot] in #858
Full Changelog: v8.1.1...v8.2.0
v8.1.1
Documentation updates
- Document
disableFallbackinput in README by @Copilot in #824
Updates / maintenance
- Bump prettier from 3.8.1 to 3.8.2 by @dependabot[bot] in #823
- Bump @types/node from 25.5.0 to 25.6.0 by @dependabot[bot] in #822
- Bump @typescript-eslint/parser from 8.57.1 to 8.58.1 by @dependabot[bot] in #821
- Bump eslint from 10.0.2 to 10.2.0 by @dependabot[bot] in #818
- Add .gitattributes to fix Windows CI prettier format-check failure by @Copilot in #826
- Bump @typescript-eslint/eslint-plugin from 8.57.1 to 8.59.3 by @dependabot[bot] in #820
- Bump @actions/core from 3.0.0 to 3.0.1 by @dependabot[bot] in #831
- Bump @actions/glob from 0.6.1 to 0.7.0 by @dependabot[bot] in #830
- Bump @types/node from 25.6.0 to 25.7.0 by @dependabot[bot] in #828
- Bump prettier from 3.8.2 to 3.8.3 by @dependabot[bot] in #827
- Bump typescript from 5.9.3 to 6.0.3 by @dependabot[bot] in #829
- Update dist by @github-actions[bot] in #832
Full Changelog: v8...v8.1.1
v8.1.0
What's Changed
- Clean up ephemeral files before saving sbt/ivy2 cache by @Copilot in #806
- Add
disableFallbackoption to prevent cache key fallback by @Copilot in #807 - Add COURSIER_CACHE_ACTION_CACHE_VERSION env var for manual cache invalidation by @Copilot in #808
Updates / maintenance
- Bump @stylistic/eslint-plugin-ts from 2.13.0 to 3.1.0 by @dependabot[bot] in #792
- Bump prettier from 3.7.4 to 3.8.1 by @dependabot[bot] in #789
- Bump @types/node from 25.2.0 to 25.3.0 by @dependabot[bot] in #791
- Bump eslint from 8.57.0 to 10.0.0 by @dependabot[bot] in #793
- Bump @actions/glob from 0.5.0 to 0.6.1 by @dependabot[bot] in #790
- Update dist by @github-actions[bot] in #798
- Bump @stylistic/eslint-plugin-ts from 3.1.0 to 4.4.1 by @dependabot[bot] in #800
- Bump @typescript-eslint/parser from 8.56.0 to 8.56.1 by @dependabot[bot] in #801
- Bump eslint from 10.0.0 to 10.0.2 by @dependabot[bot] in #802
- Bump @types/node from 25.3.0 to 25.3.1 by @dependabot[bot] in #804
- Bump @typescript-eslint/eslint-plugin from 8.56.0 to 8.56.1 by @dependabot[bot] in #803
- Update dist by @github-actions[bot] in #805
- Update dist by @github-actions[bot] in #809
Full Changelog: v8...v8.1.0
v8.0.1
What's Changed
-
Add a flag enabling to ignore saving/restoring Ammonite cache by @Gedochao in #774
-
Bump @types/node from 25.0.9 to 25.2.0 by @dependabot[bot] in #772
-
Add workflow ensuring PRs don't modify files under dist/ by @alexarchambault in #775
-
Update dist by @github-actions[bot] in #776
-
Bump @typescript-eslint/parser from 6.20.0 to 8.54.0 by @dependabot[bot] in #769
-
Bump eslint-plugin-github from 4.10.2 to 6.0.0 by @dependabot[bot] in #652
-
Update dist by @github-actions[bot] in #786
-
Bump @actions/core from 2.0.2 to 3.0.0 by @dependabot[bot] in #770
-
Bump @actions/cache from 4.1.0 to 6.0.0 by @dependabot[bot] in #771
-
Update dist by @github-actions[bot] in #788
New Contributors
Full Changelog: v8...v8.0.1
v8.0.0
What's Changed
This release mainly switches from Node from 24 to Node 25
Updates / maintenance
- Bump @types/node from 24.7.2 to 24.9.2 by @dependabot[bot] in #745
- Bump actions/setup-node from 5 to 6 by @dependabot[bot] in #742
- Bump typescript from 5.9.2 to 5.9.3 by @dependabot[bot] in #739
- Bump @vercel/ncc from 0.38.3 to 0.38.4 by @dependabot[bot] in #738
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #752
- Bump js-yaml from 4.1.0 to 4.1.1 by @dependabot[bot] in #750
- Bump @types/node from 24.9.2 to 24.10.1 by @dependabot[bot] in #749
- Bump peter-evans/create-pull-request from 7 to 8 by @dependabot[bot] in #761
- Bump @actions/core from 1.11.1 to 2.0.0 by @dependabot[bot] in #760
- Bump @types/node from 24.10.1 to 24.10.2 by @dependabot[bot] in #758
- Bump prettier from 3.6.2 to 3.7.4 by @dependabot[bot] in #757
- Update dist by @github-actions[bot] in #762
- Bump @types/node from 24.10.2 to 25.0.9 by @dependabot[bot] in #765
- Bump @actions/core from 2.0.0 to 2.0.2 by @dependabot[bot] in #764
- Update dist by @github-actions[bot] in #768
Full Changelog: v7...v8.0.0
v7.0.0
These changes are identical to the 6.4.8 ones. These were reverted on the 6.x branch in 6.4.9, and added back in 7.x here.
What's Changed
- Use Node24 and es2024 by @exoego in #711
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #709
- Bump typescript from 5.4.4 to 5.9.2 by @dependabot[bot] in #706
- Update dist by @github-actions[bot] in #712
- Bump @types/node from 24.3.0 to 24.7.2 by @dependabot[bot] in #734
- Bump @actions/cache from 4.0.3 to 4.1.0 by @dependabot[bot] in #726
- Bump actions/setup-node from 4 to 5 by @dependabot[bot] in #718
- Bump prettier from 3.5.3 to 3.6.2 by @dependabot[bot] in #713
- Update dist by @github-actions[bot] in #736
Full Changelog: v6.4.9...v7.0.0
v6.4.9
v6.4.8
What's Changed
- Use Node24 and es2024 by @exoego in #711
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #709
- Bump typescript from 5.4.4 to 5.9.2 by @dependabot[bot] in #706
- Update dist by @github-actions[bot] in #712
- Bump @types/node from 24.3.0 to 24.7.2 by @dependabot[bot] in #734
- Bump @actions/cache from 4.0.3 to 4.1.0 by @dependabot[bot] in #726
- Bump actions/setup-node from 4 to 5 by @dependabot[bot] in #718
- Bump prettier from 3.5.3 to 3.6.2 by @dependabot[bot] in #713
- Update dist by @github-actions[bot] in #736
Full Changelog: v6...v6.4.8