Satishchoudhary94
dff445bec7
fix( #1357 ): Gracefully handle missing pnpm installation during cache
...
This change prevents the action from failing immediately when pnpm is specified
in packageManager but not yet installed (e.g., when using corepack).
Changes:
- Add isPackageManagerInstalled() function to check if a package manager exists
- Update restoreCache to skip caching with a warning if package manager not found
- Update cachePackages to skip cache save with a warning if package manager not found
- This allows workflows to continue instead of failing
- Users can either install pnpm first or disable caching with package-manager-cache: false
Fixes #1357
Related: https://github.com/actions/setup-node/issues/1357
2026-01-18 14:08:11 +00:00
Priya Gupta
b9b25d45f7
Remove always-auth configuration handling from action ( #1436 )
...
* Remove always-auth configuration handling from setup-node
* docs: update README to note always-auth removal
Update README to mention removal of always-auth input
* Clarify removal of 'always-auth' input in README
Updated the description of the 'always-auth' input removal for clarity.
2025-11-26 11:37:55 -06:00
Priya Gupta
2028fbc5c2
Limit automatic caching to npm, update workflows and documentation ( #1374 )
...
* default to auto-caching only for npm package manager and documentation update
* refactor: enhance package manager detection for auto-caching
* add devEngines.packageManager detection logic for npm auto-caching
* chore: bump version to 6.0.0 and update documentation
* docs: update README and action.yml for npm caching logic clarification
* chore: update Node.js version in workflows
* chore: update Node.js versions in versions.yml
* chore: update rc Node.js version in versions.yml
* chore: switch macos-13 runner to macos-latest-large in workflow
* docs: update README and advanced usage documentation
2025-10-13 21:37:06 -05:00
dependabot[bot]
89d709d423
Bump prettier from 2.8.8 to 3.6.2 ( #1334 )
...
versions / nightly-syntax (21-nightly, macos-13) (push) Has been cancelled
versions / nightly-syntax (21-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (21-nightly, windows-latest) (push) Has been cancelled
versions / rc-syntax (18.0.0-rc.2, macos-13) (push) Has been cancelled
versions / rc-syntax (18.0.0-rc.2, macos-latest) (push) Has been cancelled
versions / rc-syntax (18.0.0-rc.2, windows-latest) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, macos-13) (push) Has been cancelled
versions / version-file (package.json, windows-latest) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, macos-latest) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, windows-latest) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, macos-13) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, macos-latest) (push) Has been cancelled
versions / version-file-volta (macos-13) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, windows-latest) (push) Has been cancelled
versions / manifest (18.20.0, macos-13) (push) Has been cancelled
versions / manifest (18.20.0, macos-latest) (push) Has been cancelled
versions / manifest (18.20.0, windows-latest) (push) Has been cancelled
versions / manifest (20.10.0, macos-13) (push) Has been cancelled
versions / manifest (20.10.0, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, macos-13) (push) Has been cancelled
versions / node-latest-aliases (current, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-13) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (node, macos-13) (push) Has been cancelled
versions / node-latest-aliases (node, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (node, windows-latest) (push) Has been cancelled
Update configuration files / Update configuration files (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
* Bump prettier from 2.8.8 to 3.6.2
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.8 to 3.6.2.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.6.2 )
---
updated-dependencies:
- dependency-name: prettier
dependency-version: 3.6.2
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* check failure fix
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
2025-09-18 15:17:30 -05:00
dependabot[bot]
cd2651c462
Bump ts-jest from 29.1.2 to 29.4.1 ( #1336 )
...
versions / v8-canary-syntax (20-v8-canary, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (20-v8-canary, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary, macos-13) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, macos-13) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, windows-latest) (push) Has been cancelled
versions / nightly-syntax (18.0.0-nightly, macos-13) (push) Has been cancelled
versions / nightly-syntax (18.0.0-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (18.0.0-nightly, windows-latest) (push) Has been cancelled
versions / nightly-syntax (20-nightly, macos-13) (push) Has been cancelled
versions / nightly-syntax (20-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (20-nightly, windows-latest) (push) Has been cancelled
versions / nightly-syntax (21-nightly, macos-13) (push) Has been cancelled
versions / nightly-syntax (21-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (21-nightly, windows-latest) (push) Has been cancelled
versions / rc-syntax (18.0.0-rc.2, macos-13) (push) Has been cancelled
versions / rc-syntax (18.0.0-rc.2, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, macos-13) (push) Has been cancelled
versions / node-latest-aliases (current, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-13) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (node, macos-13) (push) Has been cancelled
versions / node-latest-aliases (node, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (node, windows-latest) (push) Has been cancelled
Update configuration files / Update configuration files (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
* Bump ts-jest from 29.1.2 to 29.4.1
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest ) from 29.1.2 to 29.4.1.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases )
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.1.2...v29.4.1 )
---
updated-dependencies:
- dependency-name: ts-jest
dependency-version: 29.4.1
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* documentation update
* check failure fix
* text alignment
* doc update
* updated documentation and logs
* doc update
* update
* doc update
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
2025-09-08 21:49:38 -05:00
priya-kinthali
d7a11313b5
Enhance caching in setup-node with automatic package manager detection ( #1348 )
...
versions / rc-syntax (18.0.0-rc.2, windows-latest) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, macos-13) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, macos-latest) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, windows-latest) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, macos-13) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, macos-latest) (push) Has been cancelled
versions / manifest (20.10.0, windows-latest) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, windows-latest) (push) Has been cancelled
versions / manifest (18.20.0, macos-13) (push) Has been cancelled
versions / manifest (18.20.0, macos-latest) (push) Has been cancelled
versions / manifest (18.20.0, windows-latest) (push) Has been cancelled
versions / manifest (20.10.0, macos-13) (push) Has been cancelled
versions / manifest (20.10.0, macos-latest) (push) Has been cancelled
versions / version-file (package.json, windows-latest) (push) Has been cancelled
versions / version-file-volta (macos-13) (push) Has been cancelled
versions / version-file-volta (macos-latest) (push) Has been cancelled
versions / version-file-volta (windows-latest) (push) Has been cancelled
versions / version-file-volta-extends (macos-13) (push) Has been cancelled
versions / version-file-volta-extends (macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, macos-13) (push) Has been cancelled
versions / node-latest-aliases (current, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-13) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (node, macos-13) (push) Has been cancelled
versions / node-latest-aliases (node, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (node, windows-latest) (push) Has been cancelled
Update configuration files / Update configuration files (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 1s
* setup node in local
* Enhance caching in setup-node with package manager filed detection
* updated with array
* update the field
2025-08-25 21:40:12 -05:00
Marco Ippolito
e3ce749e20
feat: support private mirrors ( #1240 )
...
versions / lts-syntax (lts/dubnium, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/erbium, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/fermium, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20-v8-canary, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20.0.0-v8-canary, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (18.0.0-nightly, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (20-nightly, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (21-nightly, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (18.0.0-rc.2, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (19.0.0-rc.0, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (20.0.0-rc.1, ubuntu-latest) (push) Failing after 0s
versions / manifest (18.20.0, ubuntu-latest) (push) Failing after 0s
versions / manifest (20.10.0, ubuntu-latest) (push) Failing after 0s
versions / manifest (22.0.0, ubuntu-latest) (push) Failing after 0s
versions / check-latest (18, ubuntu-latest) (push) Failing after 1s
versions / check-latest (20, ubuntu-latest) (push) Failing after 0s
versions / check-latest (22, ubuntu-latest) (push) Failing after 0s
versions / version-file (.nvmrc, ubuntu-latest) (push) Failing after 0s
versions / version-file (.tool-versions, ubuntu-latest) (push) Failing after 0s
versions / version-file (.tool-versions-node, ubuntu-latest) (push) Failing after 0s
versions / version-file (package.json, ubuntu-latest) (push) Failing after 1s
versions / version-file-volta (ubuntu-latest) (push) Failing after 0s
versions / version-file-volta-extends (ubuntu-latest) (push) Failing after 0s
versions / node-dist (19, ubuntu-latest) (push) Failing after 0s
versions / node-dist (17, ubuntu-latest) (push) Failing after 1s
versions / old-versions (ubuntu-latest) (push) Failing after 0s
versions / node-latest-aliases (current, ubuntu-latest) (push) Failing after 1s
versions / node-latest-aliases (latest, ubuntu-latest) (push) Failing after 0s
versions / node-latest-aliases (node, ubuntu-latest) (push) Failing after 0s
* feat: support private mirrors
* chore: change fallback message with mirrors
2025-04-02 10:49:47 -05:00
Peng Xiao
39370e3970
fix: add arch to cached path ( #843 )
...
* fix: add arch to cached path
* fix: change from using env to os module
* fix: use process.env.RUNNER_OS instead of os.platform()
* fix: remove unused var
2024-10-23 22:31:49 -05:00
John Wesley Walker III
abb238b131
Revise isGhes logic ( #1148 )
...
* Revise `isGhes` logic
* ran 'npm run format'
* added unit test
2024-10-21 11:41:32 -05:00
Priya Gupta
1c7b2db920
Fix: windows arm64 setup ( #1126 )
...
* Add condition to ensure ZIP extraction targets only Windows ARM64 official archives
* Bumps micromatch from 4.0.5 to 4.0.8
2024-09-06 14:30:34 -05:00
Dmitry Shibanov
60edb5dd54
Add support for arm64 Windows ( #927 )
...
* add support for arm64 Windows
* revert 7z to exe
* add comment
---------
Co-authored-by: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com>
2024-02-06 22:42:16 -06:00
Manta Anantachai S
d86ebcd40b
Add support for volta.extends ( #921 )
...
* Add support for `volta.extends`
* Code review
2023-12-29 15:01:21 +05:30
NullVoxPopuli
b39b52d121
Fix node-version-file interprets entire package.json as a version ( #865 )
2023-12-14 13:53:26 +01:00
aparnajyothi-y
ec97f37504
Add fix for cache ( #917 )
2023-12-13 12:42:40 +01:00
Dmitry Shibanov
54534a2a9b
Change node version for action to node20 ( #866 )
2023-10-23 15:20:20 +02:00
Nikolai Laevskii
ac16ae42d7
Update message to use waning instead of info
2023-10-19 16:59:10 +02:00
Nikolai Laevskii
9e956a555c
Add notice about binaries not being updated yet
2023-10-19 13:43:56 +02:00
dependabot[bot]
7da2a7eb0c
Bump @babel/traverse from 7.15.4 to 7.23.2 ( #870 )
2023-10-19 10:40:59 +02:00
Nikolai Laevskii
acbf0586b1
Fix typo
2023-09-25 15:58:01 +02:00
Nikolai Laevskii
2651591c72
Update temporary directory creation
2023-09-25 15:58:01 +02:00
Dmitry Shibanov
5e21ff4d9b
Remove filter for cached paths ( #831 )
2023-08-15 15:53:46 +02:00
Dmitry Shibanov
bea5baf987
change getinput to getstate for cache ( #816 )
2023-08-10 16:32:24 +02:00
Vytis Valentinavičius
ca2d4e0cdd
feat: handling the case where "node" is used for tool-versions file. ( #812 )
2023-07-18 13:01:34 +02:00
Dmitry Shibanov
c7a93deeac
resolve SymbolicLink ( #809 )
2023-07-13 14:06:23 +02:00
Dmitry Shibanov
34050076a5
Add check for existing paths ( #803 )
2023-07-13 14:03:41 +02:00
Louis Lam
e2d34eacc8
Fix armv7 cache issue ( #794 )
2023-07-12 16:09:57 +02:00
Sergey Dolin
e33196f742
Do not ivalidate the cache entirely on lock file change ( #744 )
...
* Do not ivalidate the cache entirely on yarn3 lock file change
* Use cache prefix if all sub-projects are yarn managed
* Rename functions & add e2e tests
2023-06-27 13:07:43 +02:00
Sergey Dolin
8170e22e8f
Detect cached folders from multiple directories ( #735 )
...
* Add project-dir
* Fix find lock file
* Remove package-dir input
* format & resolve conflicts
* Add unit tests
* build dist
* Apply change request fixes
* handle non-dir cache-dependency-path
* bump cache version
* run checks
* Handle globs in cacheDependencyPath
* refactor, introduce `cacheDependencyPathToProjectsDirectories`
it is necessary for the next PR related yarn optimization
* Changes requests
* Apply fixes
* review fixes
* add e2e
* Add unique
* review updates
* review updates second stage
* Review fixes 3
* imporve e2e tests
2023-06-21 17:52:17 +02:00
Adam Jones
d98fa11138
bugfix: Don't attempt to use Windows fallbacks on non-Windows OSes ( #718 )
2023-04-11 09:31:41 +02:00
Ivan
962678f22c
Add and configure ESLint and update configuration for Prettier ( #703 )
...
* Add ESLinter and update Prettier
* Update eslint config
* Update dependencies
* Rebuild action
* Update package.json
* Updates docs
* Update docs
2023-03-08 10:47:38 +02:00
Dmitry Shibanov
64ed1c7eab
Add support for v8-canary, nightly and rc ( #655 )
2023-01-05 13:16:21 +01:00
Sergey Dolin
b28830cbe2
replace throw with warn
2022-12-12 10:21:16 +01:00
Sergey Dolin
676975d9aa
Use early return pattern
2022-12-09 11:41:54 +01:00
Sergey Dolin
a69d45adcd
Add modification of scoped registry
2022-12-05 13:32:26 +01:00
Sergey Dolin
41acaa2e85
fix version output from file ( #625 )
2022-11-17 14:43:40 +01:00
Dmitry Shibanov
2349c84f5c
Add support for nightly and rc versions ( #611 )
2022-11-17 14:35:58 +01:00
Dmitry Shibanov
00e1b6691b
Pass the token input through on GHES ( #595 )
2022-11-02 12:24:44 +01:00
Uladzimir Havenchyk
c81d8ad96d
Print node, npm and yarn versions after installation ( #368 )
2022-10-03 16:02:04 +02:00
Evgenii Korolevskii
969bd26639
Fix test volta priority ( #577 )
2022-09-26 13:58:23 +02:00
Jef LeCompte
3a1b76e782
refactor: remove locally caught exceptions
2022-08-04 09:33:09 -07:00
Jef LeCompte
94f88d78c4
Merge remote-tracking branch 'upstream/main'
2022-08-04 09:28:48 -07:00
Vladimir Safonkin
348e008008
Fix node version file parsing ( #553 )
...
* Fix node version file parsing
* Build index.js
* Non-json file error handling
* Format code
* Add package.json to e2e tests
* Minor fix
2022-08-04 09:57:19 +02:00
Jef LeCompte
bb59d50268
chore: run prettier
2022-07-27 14:35:09 -07:00
Jef LeCompte
5b579f1638
refactor: check volta first, then engine
2022-07-27 14:31:06 -07:00
Jef LeCompte
57cec77d94
refactor: volta check
2022-07-27 14:25:39 -07:00
Jef LeCompte
5a01179c35
Merge remote-tracking branch 'upstream/main'
2022-07-27 14:15:58 -07:00
mannie.exe
2a814b57e1
Respect package.json's engines.node field when used as a node-version-file ( #485 )
...
* Allow reading 'package.json' as node-version-file
* Run 'npm run build'
* Read package.json contents directly during tests
- this eliminates OS-specific line-ending issues
* Run project Prettier 💅
2022-07-21 13:17:21 -04:00
Dmitry Shibanov
2fddd8803e
fixing pnpm output issue ( #545 )
2022-07-13 16:20:39 +02:00
Dmitry Shibanov
3d11add771
remove unused import
2022-07-12 14:44:36 +02:00
Dmitry Shibanov
072a2e3b10
add trim and silent true
2022-07-12 14:19:55 +02:00