Commit Graph

49 Commits (069a4f8926c4ea0bfca73c3d3ffa0a5d0c7bdce2)

Author SHA1 Message Date
Dmitry Shibanov 2349c84f5c
Add support for nightly and rc versions (#611) 2022-11-17 14:35:58 +01:00
Francesco Renzi 8c91899e58
Update @actions/core to 1.10.0 (#587) 2022-10-13 12:11:08 +02:00
Uladzimir Havenchyk c81d8ad96d
Print node, npm and yarn versions after installation (#368) 2022-10-03 16:02:04 +02:00
Jef LeCompte 9f20343a3a
style: change test name 2022-07-27 14:27:21 -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
Marko Zivic 5b949b50c3
Merge pull request #373 from ganta/add-support-for-asdf-format-as-node-version-file
Add support for asdf format as Node.js version file
2022-07-11 13:48:55 +02:00
Filip Skokan 460f88643a fixup mocked version output 2022-07-01 01:30:18 +02:00
Filip Skokan d8b0944270 add mock for getExecOutput in installer.test.ts 2022-07-01 01:27:37 +02:00
Jef LeCompte 4096f07b51
chore: run prettier 2022-06-30 09:57:00 -07:00
Jef LeCompte d86a20eb78
test: fix versionSpec 2022-06-30 09:17:18 -07:00
Jef LeCompte dbfbe9b6da
refactor: move volta logic 2022-06-29 15:37:53 -07:00
Jef LeCompte 9aa86428fe
chore: run prettier 2022-06-29 15:11:14 -07:00
Jef LeCompte a03d9f05e4
test: add node-version-file test 2022-06-29 12:28:21 -07:00
Jack Bates eeb10cff27
Support lts/-n aliases (#481) 2022-06-02 12:30:33 +02:00
Hideki Igarashi dbb64ac1d1 Add support for asdf format as Node.js version file 2022-05-30 20:13:04 +09:00
Hideki Igarashi 82496765f3 Add tests for parseNodeVersionFile 2022-05-30 20:05:14 +09:00
panticmilos fd1b409bc3 unit tests 2022-05-19 17:33:13 +02:00
Jack Bates 4d62fafc05
Add test for node-version * (#491) 2022-05-18 09:50:05 +02:00
Milos Pantic 17f8bd9264
Expand current syntax to support aliases for latest version (current/latest/node) (#483) 2022-05-12 17:26:02 +02:00
Dmitry Shibanov bacd6b4b3a
Caching on GHES (#452)
* add support for ghes caching

* fix licesnses

* work on resolving comments

* change internal error to warning

* fix warning for internal errors

* update version
2022-03-31 15:10:37 -04:00
Hargun Kaur d08cf22211
Adding Node.js version file support (#338) 2021-11-29 12:18:31 +03:00
Alena Sviridenko d21ecc7c5b
Revert "Temporarily disabled cache usage for v2" 2021-08-04 17:00:35 +03:00
AlyonaSviridenko 004fb83876 Temporarily disabled cache usage 2021-08-03 18:33:25 +03:00
Gordey Doronin 48042628a6 Stricter check and cleaner messaging 2021-06-30 09:34:42 +02:00
Gordey Doronin 8624ddbdce Extract common setup logic to hook 2021-06-30 09:27:49 +02:00
Gordey Doronin 9b447f0b81 Fix paths for windows tests 2021-06-25 11:48:41 +02:00
Gordey Doronin c2dfe2df98 Reuse manifest code 2021-06-22 17:52:06 +02:00
Gordey Doronin d9ce83b637 Formatter 2021-06-22 16:11:44 +02:00
Gordey Doronin 56c3db9dda Cleanup redundant leftover 2021-06-22 15:51:57 +02:00
Gordey Doronin 92722aec8c Logic remastered to not force check-latest 2021-06-22 15:45:25 +02:00
Gordey Doronin 36d2ce149e Switch warning to info logging 2021-06-21 14:33:27 +02:00
Gordey Doronin fa68745dc0 Test coverage for uknown and malformed aliases 2021-06-17 18:53:38 +02:00
Gordey Doronin c8889b24a3 Support lts/* alias 2021-06-17 18:34:09 +02:00
Gordey Doronin 88d5bfde31 Support LTS aliases 2021-06-17 17:51:02 +02:00
Guangcong Luo 46071b5c7a
Fix TypeScript error line/column (#125)
* Fix TypeScript error line/column

* Adopt official pattern from VS Code

* Minor cleanup

* Add tests for tsc problem matcher

Co-authored-by: Lukas Spieß <lumaxis@github.com>
2021-02-17 10:52:41 -05:00
Amin Yahyaabadi 5984462aaa Rename node-arch to architecture 2020-12-08 16:24:02 -06:00
Amin Yahyaabadi aabe026707 Merge remote-tracking branch 'upstream/main' into arch 2020-12-08 16:15:00 -06:00
Thomas Boop c6fd00ceb9
Swap to env files (#200)
* Swap to env files

* revert to old method for tests

* disable executing of commands during tests

* bump package.json @actions/core version
2020-10-01 12:03:22 -04:00
Amin Yahyaabadi a83bf51129 test: test using main.run and spying 2020-09-03 12:40:39 -05:00
Amin Yahyaabadi 922f2f9468 test: revert using nock and fixtures 2020-09-03 12:33:53 -05:00
Amin Yahyaabadi 7a3669aa8a test: add arch tests
Co-Authored-By: Tyler Ang-Wanek <tylerw@axosoft.com>

feat: add nock

Co-Authored-By: Tyler Ang-Wanek <tylerw@axosoft.com>
2020-09-03 12:33:50 -05:00
Amin Yahyaabadi c7e4d38541 feat: add arch to downloading message 2020-09-03 12:18:12 -05:00
Maxim Lobanov 1ae8f4b1fd
Implement "check-latest" flag to check if pre-cached version is latest one (#165) 2020-06-29 14:56:37 -04:00
Bryan MacFarlane e434342e4e
download from node-versions and fallback to node dist (#147)
* download LTS versions from releases

* support upcoiming ghes 

Co-authored-by: eric sciple <ericsciple@users.noreply.github.com>
2020-05-19 09:25:54 -04:00
eric sciple 83c9f7a7df
Update tool-cache for download retries (#120) 2020-03-10 11:51:57 -04:00
Danny McCormick 78148dae50
Add auth support (#21)
* Updates

* Update

* Update

* Update

* Update

* Yarn sometimes prefers npmrc, so use same token

* Description

* Update readme

* Feedback

* Add type

* new toolkit and scoped registries

* npmrc in RUNNER_TEMP

* Dont always auth

* Try exporting blank token

* Get auth working for now pending runner changes

* Fix string interpolation for auth token.

* Don't export both userconfigs

* Update authutil.js

* Add single quotes for authString

* Fix the registry string.

* Use userconfig and append trailing slash

* Keep in root of repo

* Try just adding auth token

* Remove auth token

* Try changes again

* Add tests

* Npm and GPR samples

* Add types
2019-08-06 18:26:04 -04:00
Chris Patterson 9bb7038a07 Initial Import 2019-08-03 21:49:54 -04:00