Compare commits

..

404 Commits

Author SHA1 Message Date
eff380dfbc Fix macos latest check failures (#1041)
* Update latest node versions

* Update latest node versions

* Update test data

* Update test data

* Update test data

* Update test data

* Update test data

* macos lts failure fix

* Update macos-13
2024-05-22 08:12:24 -05:00
c2ac33f2c6 Bump undici from 5.26.5 to 5.28.3 (#965)
* Bump undici from 5.26.5 to 5.28.3

Bumps [undici](https://github.com/nodejs/undici) from 5.26.5 to 5.28.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.26.5...v5.28.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* license and other dependencies update

* updated licenses

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com>
2024-03-13 09:10:22 -05:00
25b062c917 Update README.md to update default Node version to 20 (#949)
The README's default example for setting up Node use version 16, which is at end of life. This PR updates those examples to use 20.
2024-02-13 11:33:00 -06:00
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
d86ebcd40b Add support for volta.extends (#921)
* Add support for `volta.extends`

* Code review
2023-12-29 15:01:21 +05:30
b39b52d121 Fix node-version-file interprets entire package.json as a version (#865) 2023-12-14 13:53:26 +01:00
7247617371 Add package.json to node-version-file list of examples. (#879) 2023-12-13 13:02:47 +01:00
f3ec4ca66f Fix README.md (#898)
* Fix URL of locally-cached Node.js version in README

* Change example of Major versions in Supported version syntax

setup-node v4 supports node v20, but these example may
cause misunderstanding like a v20 is not supported.

---------

Co-authored-by: fusagiko/takayamaki <takayamaki@users.noreply.github.com>
2023-12-13 12:46:19 +01:00
ec97f37504 Add fix for cache (#917) 2023-12-13 12:42:40 +01:00
5ef044f9d0 Update reusable workflows to use Node.js v20 (#889) 2023-11-13 17:32:30 +01:00
c45882a6ea update to setup-node@v4 in docs (#884) 2023-11-13 17:02:44 +01:00
ee36e8b5c0 Ignore engines check in Yarn 1 e2e-cache tests (#882) 2023-11-10 15:16:46 +01:00
8f152de45c Update actions/checkout for documentation and yaml (#876) 2023-10-23 16:22:01 +02:00
23755b521f upgrade actions/checkout to v4 (#868) 2023-10-23 15:57:08 +02:00
54534a2a9b Change node version for action to node20 (#866) 2023-10-23 15:20:20 +02:00
1a4442cacd Update toolkit cache and core (#875) 2023-10-23 12:20:07 +02:00
6e9e44895f Merge pull request #872 from akv-platform/add-notice-about-binaries-not-being-updated
Add notice about binaries not being updated yet
2023-10-19 17:20:27 +02:00
e52912ef25 Update tests 2023-10-19 17:12:39 +02:00
ac16ae42d7 Update message to use waning instead of info 2023-10-19 16:59:10 +02:00
5a8d9111e3 Update build 2023-10-19 14:31:08 +02:00
9e956a555c Add notice about binaries not being updated yet 2023-10-19 13:43:56 +02:00
7da2a7eb0c Bump @babel/traverse from 7.15.4 to 7.23.2 (#870) 2023-10-19 10:40:59 +02:00
2a017f350d Merge pull request #859 from actions/update-temp-directory-creation
Update temp directory creation
2023-10-09 07:12:35 +02:00
72c43c2d8f Update semver (#861) 2023-09-27 12:57:35 +02:00
d3ace34546 Update build 2023-09-25 16:37:45 +02:00
acbf0586b1 Fix typo 2023-09-25 15:58:01 +02:00
f1744b62b7 Update license 2023-09-25 15:58:01 +02:00
2651591c72 Update temporary directory creation 2023-09-25 15:58:01 +02:00
5e21ff4d9b Remove filter for cached paths (#831) 2023-08-15 15:53:46 +02:00
bea5baf987 change getinput to getstate for cache (#816) 2023-08-10 16:32:24 +02:00
d82f92a0eb Bump word-wrap from 1.2.3 to 1.2.4 (#815)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-04 09:56:30 +02:00
ca2d4e0cdd feat: handling the case where "node" is used for tool-versions file. (#812) 2023-07-18 13:01:34 +02:00
c7a93deeac resolve SymbolicLink (#809) 2023-07-13 14:06:23 +02:00
34050076a5 Add check for existing paths (#803) 2023-07-13 14:03:41 +02:00
f8aa08ed8e Update check-dist workflow name (#710) 2023-07-12 19:35:39 +02:00
e2d34eacc8 Fix armv7 cache issue (#794) 2023-07-12 16:09:57 +02:00
ef9c88b169 Bump semver from 6.1.2 to 6.3.1 (#807) 2023-07-12 13:17:54 +02:00
ea800d4ebc Bump tough-cookie and @azure/ms-rest-js (#802) 2023-07-12 12:47:57 +02:00
cb95c398f6 Update toolkit cache to fix zstd (#804) 2023-07-12 12:13:18 +02:00
69b2dd252e Refer to semver package name in README.md (#808) 2023-07-11 10:03:08 +02:00
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
c6722d36aa update doc for frozen lock file (#789) 2023-06-22 15:55:14 +02:00
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
698d50532e Fix description about ensuring workflow access to private package (#704) 2023-06-15 17:10:28 +02:00
869f4dd0c7 Merge pull request #758 from akv-platform/remove-implicit-dependencies
Remove implicit dependencies
2023-05-26 08:31:08 +02:00
10efafcbcf Update canary version in tests to an existing one 2023-05-25 14:57:36 +02:00
7d16907b89 Add missing dependency 2023-05-23 16:33:19 +02:00
d0d39bda2f Move eslint-plugin-node to dev dependencies 2023-05-23 11:58:21 +02:00
15a2477e08 Install eslint-plugin-node 2023-05-23 11:43:00 +02:00
7598dbcd6e Update configuration files 2023-05-23 08:38:21 +00:00
a9893b0cfb Update to node 18.x (#751) 2023-05-10 16:04:46 +02:00
5b32c9063c Update xml2js (#742) 2023-04-20 12:55:12 +02:00
d98fa11138 bugfix: Don't attempt to use Windows fallbacks on non-Windows OSes (#718) 2023-04-11 09:31:41 +02:00
9d255ef245 Adjust usage section (#734) 2023-04-06 10:52:43 +02:00
e828f9b7f3 Fix glob bug in package.json scripts section (#729) 2023-04-03 12:46:05 +02:00
a4fcaaf314 Update configuration files (#708)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-15 00:27:36 +01:00
10f5623502 Merge pull request #705 from akv-platform/reusable-workflow
Turn on automatic update of ESLint and Prettier configuration files
2023-03-10 10:55:11 +01:00
fcd18100cc Add update-config-files.yml 2023-03-08 11:13:04 +01:00
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
7c29869aec docs: fix typo in advanced-usage.md (#697) 2023-02-20 11:15:36 +01:00
ae9f0f7448 Update workflow badges (#685) 2023-01-31 08:45:30 +02:00
3dbcda8bc2 Update release-new-action-version.yml (#664) 2023-01-12 13:50:58 +01:00
f38519bb96 Fix a minor typo (#662) 2023-01-11 01:01:08 +01:00
9227cda3f0 Replace workflow badge with new badge (#653) 2023-01-10 10:59:38 +01:00
64ed1c7eab Add support for v8-canary, nightly and rc (#655) 2023-01-05 13:16:21 +01:00
92a57f4a93 Merge pull request #650 from actions/update-code-owners
Update CODEOWNERS
2022-12-27 09:28:45 +01:00
99e61d697a Update CODEOWNERS 2022-12-26 09:44:31 +01:00
3e8819f8f2 Merge pull request #649 from actions/update-codeowners
Update CODEOWNERS
2022-12-23 08:27:39 +01:00
8cd2fb28b8 Update CODEOWNERS 2022-12-23 00:07:20 +01:00
c406543918 Merge pull request #647 from akv-platform/apply-reusable-workflows
Update action to use reusable workflows
2022-12-22 10:48:47 +02:00
92a07fe466 Fix review points 2022-12-20 16:40:38 +01:00
217387cf3e Update action to use reusable-workflows repo 2022-12-19 13:43:06 +01:00
2db3663870 Merge branch 'main' of https://github.com/akv-platform/setup-node into apply-reusable-workflows 2022-12-19 13:41:43 +01:00
bbe2ac79a1 Fix typo in README (#646) 2022-12-19 10:12:38 +01:00
f5ab623822 Add links to reusable workflows 2022-12-15 16:39:43 +01:00
ca97bf7f80 Update workflows 2022-12-15 16:09:18 +01:00
fe4d514f1a Update codeql-analysis workflow 2022-12-15 15:05:14 +01:00
8151ea11a4 Setup codeql-analysis workflow 2022-12-15 14:41:30 +01:00
772ffdda26 Update package.json 2022-12-14 13:44:44 +01:00
da188081b1 Update workflows to use reusable-workflows 2022-12-14 13:42:03 +01:00
377c6dae40 Merge pull request #639 from akv-platform/v-sdolin/early-return
Use early return pattern to avoid nested conditions
2022-12-12 11:12:53 +01:00
b28830cbe2 replace throw with warn 2022-12-12 10:21:16 +01:00
676975d9aa Use early return pattern 2022-12-09 11:41:54 +01:00
d1b197b965 Merge pull request #637 from akv-platform/v-sdolin/npmrc-dup
Fix scoped registries are duplicated in npmrc
2022-12-06 12:14:53 +01:00
069a4f8926 Add dist 2022-12-05 13:37:05 +01:00
e77eaaccd3 Add unit tests 2022-12-05 13:36:23 +01:00
a69d45adcd Add modification of scoped registry 2022-12-05 13:32:26 +01:00
3ae886ede4 Update to latest actions/publish-action (#630) 2022-11-28 19:06:52 +01:00
41acaa2e85 fix version output from file (#625) 2022-11-17 14:43:40 +01:00
2349c84f5c Add support for nightly and rc versions (#611) 2022-11-17 14:35:58 +01:00
6bc15ab23c Update minimatch (#608) 2022-11-14 13:34:05 +01:00
9b8fcdc725 change datadog to ubuntu docker image (#620) 2022-11-09 18:18:47 +01:00
00e1b6691b Pass the token input through on GHES (#595) 2022-11-02 12:24:44 +01:00
16352bb09b Get rid of warnings for set-output (#607) 2022-10-25 16:37:59 +02:00
788c6ccbd0 remove node-version 12 from matrix (#594) 2022-10-17 12:23:04 +02:00
8c91899e58 Update @actions/core to 1.10.0 (#587) 2022-10-13 12:11:08 +02:00
c81d8ad96d Print node, npm and yarn versions after installation (#368) 2022-10-03 16:02:04 +02:00
c96ab56c5b Add information about always-auth input (#585) 2022-10-03 15:15:33 +02:00
969bd26639 Fix test volta priority (#577) 2022-09-26 13:58:23 +02:00
9f3a02bbd1 Merge pull request #532 from jef/main
feat: add volta as node-version-file
2022-09-12 12:48:35 +02:00
4cffe5c52b chore: remove sponge usage 2022-09-08 13:19:32 -07:00
0efefb3c0b Merge remote-tracking branch 'upstream/main' 2022-09-08 13:13:20 -07:00
1e6f2cd312 test: add volta e2e test 2022-09-08 13:12:30 -07:00
30f0e7dc5a Update @actions/core to 1.9.1 (#574) 2022-09-08 15:15:16 +02:00
c8f0d10585 upgrade @action/cache to 3.0.4 to fix stuck issue (#573) 2022-09-08 14:53:41 +02:00
b4b18e5317 Update package json version (#570) 2022-09-05 13:22:56 +02:00
9efe00a002 Merge pull request #569 from e-korolevskii/main
docs(contributor's guide): Update link
2022-08-31 10:01:23 +02:00
35ba06beb7 docs(contributor's guide): Update link 2022-08-31 09:52:01 +02:00
9fc76ff685 Merge pull request #567 from al-cheb/al-cheb/update-doc-link
Update runner link
2022-08-30 10:16:19 +02:00
dc62cc63a8 Update runner link 2022-08-29 16:10:46 +02:00
d04c34e7d9 Merge pull request #564 from lkfortuna/patch-1
Update README.md
2022-08-29 10:09:15 +02:00
32f78d9bfa Update README.md
Updating term "virtual environments" to "runner images" and updating links
2022-08-25 15:35:44 -07:00
e954e15431 Merge pull request #561 from akv-platform/v-sdolin/yarn2
Add caveat for Yarn 2+ and private repos
2022-08-22 09:03:30 +02:00
792255d078 Fix wording 2022-08-22 08:20:41 +02:00
089aa7ea91 Add caveat for Yarn 2+ and private repos 2022-08-19 12:21:26 +02:00
094c36e88e Merge pull request #555 from e-korolevskii/update-contributors-guide
Update contributors guide
2022-08-10 16:44:31 +02:00
5bbf7221ae Merge branch 'actions:main' into update-contributors-guide 2022-08-10 16:39:49 +02:00
dbb54d08f2 Update docs/contributors.md
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
2022-08-09 23:56:01 +02:00
3a1b76e782 refactor: remove locally caught exceptions 2022-08-04 09:33:09 -07:00
94f88d78c4 Merge remote-tracking branch 'upstream/main' 2022-08-04 09:28:48 -07:00
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
d79e93a91d docs: add package.json information 2022-08-03 16:37:58 -07:00
5d6bb1273a rephased documents 2022-08-03 19:26:34 +02:00
0d3aa68dd3 format 2022-08-01 01:27:02 +02:00
18090dee77 updated docs 2022-08-01 01:24:36 +02:00
bb59d50268 chore: run prettier 2022-07-27 14:35:09 -07:00
5b579f1638 refactor: check volta first, then engine 2022-07-27 14:31:06 -07:00
9f20343a3a style: change test name 2022-07-27 14:27:21 -07:00
dee2a9689c chore: run build 2022-07-27 14:26:16 -07:00
57cec77d94 refactor: volta check 2022-07-27 14:25:39 -07:00
5a01179c35 Merge remote-tracking branch 'upstream/main' 2022-07-27 14:15:58 -07:00
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
2fddd8803e fixing pnpm output issue (#545) 2022-07-13 16:20:39 +02:00
ad8542ca5e Merge pull request #540 from dmitry-shibanov/fix-error-node-version
Fix error node version output
2022-07-12 15:59:02 +02:00
3d11add771 remove unused import 2022-07-12 14:44:36 +02:00
072a2e3b10 add trim and silent true 2022-07-12 14:19:55 +02:00
28ad38fe06 add try catch 2022-07-12 10:45:50 +02:00
48de4c13f6 change to streams 2022-07-12 10:36:10 +02:00
aab7cc882a add silent 2022-07-12 10:30:30 +02:00
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
09ba51f18e README.md: Encourage testing on current Node.js (#533) 2022-07-07 14:53:32 +02:00
b3ca1ac971 Support npm-shrinkwrap.json out-of-the-box (#439) 2022-07-04 23:29:56 +02:00
78faa555e1 Merge pull request #534 from panva/set-version-output
set node-version output (2022 edition)
2022-07-04 14:45:20 +02:00
0f15a51ed6 Merge pull request #528 from jamesottaway/patch-1
docs: Include warning when configuring token to install private packages
2022-07-04 10:38:01 +02:00
460f88643a fixup mocked version output 2022-07-01 01:30:18 +02:00
d8b0944270 add mock for getExecOutput in installer.test.ts 2022-07-01 01:27:37 +02:00
0ad06209dd Update advanced-usage.md 2022-07-01 09:12:46 +10:00
adeb189fd8 apply review feedback 2022-07-01 00:46:13 +02:00
0d7418813c run build&format 2022-07-01 00:28:26 +02:00
3ac35dad40 This PR adds node-version to the action output.
This is present in e.g. setup-python
https://github.com/actions/setup-python/blob/main/action.yml

closes #150
2022-06-30 21:56:36 +02:00
4096f07b51 chore: run prettier 2022-06-30 09:57:00 -07:00
1c48dc5a9e chore: trim no matter what 2022-06-30 09:22:35 -07:00
d86a20eb78 test: fix versionSpec 2022-06-30 09:17:18 -07:00
8211e009a7 docs: update verbiage for package.json 2022-06-29 15:39:34 -07:00
dbfbe9b6da refactor: move volta logic 2022-06-29 15:37:53 -07:00
9aa86428fe chore: run prettier 2022-06-29 15:11:14 -07:00
f40b60859d docs: add special volta usage 2022-06-29 12:30:42 -07:00
a03d9f05e4 test: add node-version-file test 2022-06-29 12:28:21 -07:00
1a4ff5493d feat: add volta as node-version-file 2022-06-29 12:01:42 -07:00
7d610f0c26 Merge pull request #526 from IvanZosimov/CacheVersionUpdate
Add support for the @actions/cache library 3.0.0
2022-06-28 10:07:26 +02:00
bcb9f31327 Format cache-save.test.ts 2022-06-27 10:19:35 +02:00
73ea510762 Update unit-tests for cache-save.ts file, add coverage option to Jest 2022-06-27 10:17:28 +02:00
eaead3517c Update cache-save.ts to support @actions/cache v3.0.0 lib 2022-06-27 10:11:42 +02:00
24301fe9fb docs: Include warning when configuring token to install private packages
The distinction between `secrets.GITHUB_TOKEN` and `secrets.NPM_TOKEN` cost myself and a colleague numerous hours when we were trying to fix a GitHub Actions workflow which needed to install a private package from a different repository from our GitHub organisation.

Given the issue dedicated to this point is closed, we should include a warning here to make it more clear why `secrets.GITHUB_TOKEN` will not work when passed to `npm ci`, in the presence of private packages from other GitHub Package repositories.
2022-06-27 09:28:13 +10:00
11c7f932ce Merge pull request #2 from dmitry-shibanov/v-dmshib/cacheVersionUpdate
Update licenses
2022-06-24 14:53:04 +02:00
f1702f8f38 update licenses 2022-06-24 12:47:26 +02:00
1196f2ae1b Rebuild action with the new @actions/cache dependency 2022-06-24 12:36:36 +02:00
c22fc3c628 Update the version of @actions/cache library to 3.0.0 2022-06-24 12:22:20 +02:00
Rob
cdcc53e14f Update README.md (#522) 2022-06-17 20:47:55 +02:00
b287e177c9 Document * vs. current/latest/node difference (#508) 2022-06-14 14:13:13 +02:00
eeb10cff27 Support lts/-n aliases (#481) 2022-06-02 12:30:33 +02:00
dbb64ac1d1 Add support for asdf format as Node.js version file 2022-05-30 20:13:04 +09:00
82496765f3 Add tests for parseNodeVersionFile 2022-05-30 20:05:14 +09:00
ed1a46e9f2 Update zeit/ncc to vercel/ncc (#476) 2022-05-30 11:56:20 +02:00
daff393d43 Merge pull request #496 from panticmilos/v-mpantic/get-latest-version-from-cache
Get latest version from cache if exists
2022-05-30 09:13:35 +02:00
b14573ddb9 remove installer import 2022-05-23 12:53:31 +02:00
7569de03e7 rename dist manifest to node versions 2022-05-20 16:32:52 +02:00
b20a2561b9 get manifest once 2022-05-20 13:45:28 +02:00
ea3459bb45 docs: Update advanced-usage.md (#495)
* Update advanced-usage.md

* Update advanced-usage.md

* Update advanced-usage.md

* Update docs/advanced-usage.md

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2022-05-19 13:32:26 -04:00
141334fcd1 remove unnecessary dist call 2022-05-19 18:21:03 +02:00
808c8f917f remove bumping deps 2022-05-19 17:38:21 +02:00
fd1b409bc3 unit tests 2022-05-19 17:33:13 +02:00
9a03ebd9cc run build 2022-05-19 17:06:51 +02:00
45e544a71a fix versionSpec required error 2022-05-19 17:02:08 +02:00
8c66f89aef improve latest version syntax 2022-05-19 16:48:16 +02:00
3601f2a33e improve version syntax presentation (#493) 2022-05-18 09:50:55 +02:00
4d62fafc05 Add test for node-version * (#491) 2022-05-18 09:50:05 +02:00
17f8bd9264 Expand current syntax to support aliases for latest version (current/latest/node) (#483) 2022-05-12 17:26:02 +02:00
b067f78ed3 Use CI friendly commands in documentation (#326) 2022-05-05 16:16:51 +02:00
0bd06765ef Improve advanced usage docs (#472) 2022-05-01 16:59:15 +02:00
25184c4485 Update README.md (#475)
* Update README.md

* Update README.md
2022-04-26 11:11:03 -04:00
337fdf2194 fix broken link in readme (#473)
* fix broken link

* fix broken link
2022-04-22 08:58:19 -04:00
86bf502a33 extend documentation on scope parameter (#470)
This also ends all descriptions with a full stop (`.`).
2022-04-19 13:43:19 -04:00
146c4d84a5 improve caching documentation (#468) 2022-04-18 16:15:27 +02:00
56337c4255 Updated @actions/cache (#460)
* Updated @actions/cache

* Licensed cache

* new build

* Updated version
2022-04-11 19:06:18 +05:30
76d3665dc0 Convert CONDUCT to CODE_OF_CONDUCT.md (#391)
* Rename CONDUCT to CODE_OF_CONDUCT.md

* Update CODE_OF_CONDUCT link
2022-04-05 11:16:57 -04:00
5b52f097d3 Bump actions/checkout@v3 within advanced usage examples documentation (#456) 2022-04-01 10:41:49 +02:00
75716637dc Bump to actions/checkout@v3 (#437) 2022-04-01 10:13:52 +02:00
546fd45825 Updated documentation/workflows to use actions/setup-node@v3 (#433)
* Update documentation `actions/setup-node@v2` -> `actions/setup-node@v3`

* Bump workflows to `actions/setup-node@v3`

* Update `README.md` workflow status badges to new format
2022-03-31 15:14:07 -04:00
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
bed538bd04 Merge pull request #448 from actions/dependabot/npm_and_yarn/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6
2022-03-24 09:33:20 -04:00
f3e93d1b9d Bump minimist from 1.2.5 to 1.2.6
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 11:54:46 +00:00
ed960c9656 Merge pull request #440 from actions/joshmgross/service-codeowners
Update CODEOWNERS to actions-service
2022-03-10 13:32:59 -05:00
77f43a4400 Update CODEOWNERS to actions-service 2022-03-10 13:27:02 -05:00
9ced9a43a2 remove version input (#424) 2022-02-24 16:31:57 +03:00
3e90744edf Update lockfileVersion (#422) 2022-02-24 14:42:19 +03:00
28df918a56 Update default runtime to node16 (#414) 2022-02-22 11:28:24 +03:00
f099707f6e fix tsc build error for @actions/http-client (#402) 2022-01-11 13:06:36 +03:00
f658dc5bd7 ci: use NPM cache in check-dist (#393) 2022-01-06 16:27:25 +03:00
5e2e068714 ci(workflow): add cache to workflows using actions/setup-node (#287) 2021-12-30 17:05:57 +03:00
7a0f7a9962 Fix grammar in the README (#331) 2021-12-30 17:01:04 +03:00
7b558676dd chore: Remove strategy for non-matrix builds (#186) 2021-12-30 16:58:49 +03:00
1f8c6b94b2 Pass to warning uncaught exceptions (#359) 2021-12-28 12:25:43 +03:00
9a74eb4e64 Throw error only if exit code is note zero. (#358) 2021-12-27 12:34:06 +03:00
04c56d2f95 update cache to 1.0.8 (#367) 2021-11-29 13:35:08 +03:00
d08cf22211 Adding Node.js version file support (#338) 2021-11-29 12:18:31 +03:00
360ab8b75b Fix typo in the bug_report template (#353) 2021-11-03 13:20:09 +03:00
fd4bd829f2 Add issue and pull request templates (#344) 2021-10-18 13:39:58 +03:00
a4b8ed2f4e Update dependencies (#346) 2021-10-14 13:18:01 +03:00
270253e841 Merge pull request #327 from WtfJoke/addCacheHitOutPut
Add 'cache-hit' as output
2021-09-24 18:27:23 +03:00
d1178716db Add 'cache-hit' as output 2021-09-23 13:17:32 +00:00
041bafb672 Merge pull request #322 from brcrista/brcrista/check-dist
Create check-dist.yml
2021-09-16 18:12:52 +03:00
996306e892 rm __tests__/verify-no-unstaged-changes.sh 2021-09-16 10:54:26 -04:00
85d4122530 Fix triggers in licensed.yml 2021-08-25 11:29:51 -04:00
928244ce45 Add check-dist.yml 2021-08-25 11:29:50 -04:00
25316bbc1f Merge pull request #305 from MaksimZhukov/mazhuk/adding-support-for-monorepos
Support caching for mono repos and repositories with complex structure
2021-08-05 19:17:12 +03:00
76a4cff9ae update readme and dist files 2021-08-05 12:00:47 +00:00
a869e7cc2d Merge branch 'main' of https://github.com/MaksimZhukov/setup-node into mazhuk/adding-support-for-monorepos 2021-08-05 11:48:54 +00:00
a0cdab1110 Merge pull request #299 from actions/malob/adr-caching-monorepos
ADR for support caching for mono repos and repositories with complex structure
2021-08-05 10:53:54 +03:00
4d0182af5e Merge pull request #310 from actions/revert-308-v-alsvir/disable-cache-usage-temp-v2
Revert "Temporarily disabled cache usage for v2"
2021-08-04 17:21:06 +03:00
896ee80599 Restore YARN flag 2021-08-04 17:04:32 +03:00
d21ecc7c5b Revert "Temporarily disabled cache usage for v2" 2021-08-04 17:00:35 +03:00
d6e3b5539e Merge pull request #308 from actions/v-alsvir/disable-cache-usage-temp-v2
Temporarily disabled cache usage for v2
2021-08-03 19:20:30 +03:00
db716f881a Add yarn env variable 2021-08-03 18:53:52 +03:00
c24389f79e Staging unstaged 2021-08-03 18:37:52 +03:00
004fb83876 Temporarily disabled cache usage 2021-08-03 18:33:25 +03:00
180b77fed2 Update the caching section in the README 2021-08-03 17:18:13 +03:00
9f31dbbbc4 Support caching for mono repos and repositories with complex structure 2021-08-02 20:44:59 +03:00
aa759c6c94 Merge pull request #278 from jacobwgillespie/cache-pnpm
Add pnpm caching support
2021-07-20 15:22:13 +03:00
0ae03de2b7 Reorder to npm, yarn, pnpm 2021-07-15 20:14:30 +01:00
4bc87b8e10 Bump e2e tests to 6.10.0 2021-07-15 14:51:41 +03:00
b96348a4e9 Remove unused imports 2021-07-15 12:46:07 +01:00
3af302a4f2 Switch to pnpm store path command 2021-07-15 12:43:19 +01:00
f452812b44 Unmock fs.existsSync after tests 2021-07-15 12:40:08 +01:00
f43d8a1f27 Update 0001-support-caching-deps-for-monorepos.md 2021-07-15 13:23:09 +03:00
e93556ca66 Mock fs.existsSync in tests 2021-07-14 20:11:07 +01:00
0453e516eb Regenerate compiled files 2021-07-14 15:25:55 +01:00
399982b368 Move existence check to cache-save 2021-07-14 15:25:45 +01:00
d278e78bdd Add logic to check that cache folder exists 2021-07-14 13:06:33 +01:00
fdbc93ea6e Add disclaimer to pnpm action example, pin action 2021-07-14 13:03:28 +01:00
f24e78e0f6 Update __tests__/cache-save.test.ts
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
2021-07-14 13:01:18 +01:00
3c1fbef7d3 Update 0001-support-caching-deps-for-monorepos.md 2021-07-13 20:35:24 +03:00
5aa72c249a Apply suggestions from code review
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
2021-07-13 19:36:58 +03:00
d9aab2aba4 dra 2021-07-13 16:28:09 +03:00
162ddf7c40 Add pnpm caching support 2021-06-30 20:17:23 +01:00
38d90ce44d Merge pull request #277 from actions/malob/update-readme
Update readme to describe new NVM LTS syntax
2021-06-30 15:20:50 +03:00
e1e1d4c853 Update README.md
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
2021-06-30 15:12:34 +03:00
40f85c8c97 update readme 2021-06-30 15:07:45 +03:00
e215578cb0 Merge pull request #272 from akv-platform/add-caching-for-node-dependencies
Implementation of node's caching
2021-06-30 14:07:42 +03:00
9af89732f0 Merge pull request #274 from actions/v-mazhuk/automate-releasing-new-versions
Automate releasing new action versions
2021-06-30 14:05:58 +03:00
cfe70f9fe8 update dependencies 2021-06-30 13:08:07 +03:00
b259ba49fe rebuild project 2021-06-30 11:41:00 +03:00
55e10498cf Merge branch 'main' into add-caching-for-node-dependencies 2021-06-30 11:39:23 +03:00
bcb4cecf9b Merge pull request #270 from gordey4doronin/gordey/support-lts-syntax
Support LTS aliases
2021-06-30 11:32:30 +03:00
72922790cb fix for documentation 2021-06-30 10:39:46 +03:00
48042628a6 Stricter check and cleaner messaging 2021-06-30 09:34:42 +02:00
8624ddbdce Extract common setup logic to hook 2021-06-30 09:27:49 +02:00
282049a5b1 regenerate license (#7)
* regenerate license

* npm run build

* sync branches

* rebuild project

* fix test

Co-authored-by: Dmitry Shibanov <dmitry-shibanov@github.com>
2021-06-29 13:34:35 +03:00
87a21fa69e Automate releasing new action versions 2021-06-29 12:33:36 +03:00
e79375d669 Merge pull request #266 from actions/malob/cache-adr
Create ADR for integrating cache functionality to setup-node action
2021-06-29 09:50:06 +03:00
57b9c8c424 Don't run verify check on lts syntax 2021-06-25 12:13:33 +02:00
4bef829942 Add e2e test for lts-syntax 2021-06-25 11:56:15 +02:00
9b447f0b81 Fix paths for windows tests 2021-06-25 11:48:41 +02:00
d36a3314a5 work on resolving comments 2021-06-25 12:06:49 +03:00
c2dfe2df98 Reuse manifest code 2021-06-22 17:52:06 +02:00
f2b87bb2c2 Squashed commit of the following:
commit 446068aff1ec25da69c5b6af6d01dd19b230b4b2
Author: Alena Sviridenko <alenasviridenko@github.com>
Date:   Tue Jun 22 17:51:35 2021 +0300

    updated headers

commit d7e254e6e9534bb627373b7e40400cc45a888815
Author: Alena Sviridenko <alenasviridenko@github.com>
Date:   Thu Jun 17 17:35:34 2021 +0300

    updated links

commit ffd9956eda8c43e846f3305bad21fa064b07280f
Author: AlyonaSviridenko <alenasviridenko@github.com>
Date:   Thu Jun 17 17:33:41 2021 +0300

    Added advanced usage

commit 1e068f031030962d380a1bae32beb806d1c6f818
Author: AlyonaSviridenko <alenasviridenko@github.com>
Date:   Thu Jun 17 15:07:42 2021 +0300

    Updated readme with caching

commit 7528c3399a9c8e0b4e63f7a079e0078af6b92d6a
Author: Maxim Lobanov <v-malob@microsoft.com>
Date:   Wed Jun 16 14:43:46 2021 +0300

    Update versions.yml
2021-06-22 18:32:22 +03:00
d9ce83b637 Formatter 2021-06-22 16:11:44 +02:00
56c3db9dda Cleanup redundant leftover 2021-06-22 15:51:57 +02:00
92722aec8c Logic remastered to not force check-latest 2021-06-22 15:45:25 +02:00
c62861c1e7 Rename 2021-06-22 13:10:16 +02:00
36d2ce149e Switch warning to info logging 2021-06-21 14:33:27 +02:00
bcdcde00c0 Stage dist files 2021-06-21 11:40:55 +02:00
0ec4841e4b Function renaming 2021-06-21 11:39:00 +02:00
e761a7024e Interface extraction 2021-06-21 11:37:50 +02:00
c8c6442c74 Add brief comment about supported formats 2021-06-21 11:37:06 +02:00
fa68745dc0 Test coverage for uknown and malformed aliases 2021-06-17 18:53:38 +02:00
c8889b24a3 Support lts/* alias 2021-06-17 18:34:09 +02:00
88d5bfde31 Support LTS aliases 2021-06-17 17:51:02 +02:00
1088324e41 remove workaround 2021-06-17 17:47:24 +03:00
05f3e9f4fa remove eol in gitattributes 2021-06-17 17:20:16 +03:00
3d0d4edb10 Add node's caching implementation (#2)
* first iteration for implementation of caching

* add logs

* add debug line

* fix build command

* fix path

* add possible post-if

* remove braces

* test new action post-if variant

* work on built-in caching

* remove post-if

* pass version

* work on yarn support

* fix return value

* change names and remove logs

* worked on resolving comments

* check post-if for null

* add success() condition

* remove primary key field

* work on resolving comments

* remove logs

* resolving comments

* resolving comments

* resolving comments

* resolving comments

* fix getpackageManagerVersion

* run clean for unstaged changes

* fix falling version tests

* work on resolving comments

* resolving comments

* fix comment

* resolve comments

* Add tests to cover node's caching (#3)

* add tests to cover node's caching

* work on fixing tests

* fix e2e tests

* rebuild and fix test

* fixing tests

* change name of describes, it and fix test

* add names for jobs

* fix issue
2021-06-16 09:52:44 +03:00
5929471019 Update 0000-caching-dependencies.md 2021-06-02 15:52:17 +03:00
1bf30534fd Update docs/adrs/0000-caching-dependencies.md
Co-authored-by: Alejandro Pauly <alepauly@github.com>
2021-05-26 17:29:27 +03:00
ae26aaf1b5 Update 0000-caching-dependencies.md 2021-05-26 17:27:14 +03:00
5fddb2d510 Update 0000-caching-dependencies.md 2021-05-24 17:35:10 +03:00
8c35c6c880 Update 0000-caching-dependencies.md 2021-05-21 18:28:06 +03:00
24265e14d4 Create 0000-caching-dependencies.md 2021-05-21 18:16:14 +03:00
5c355be170 use 14 instead of 12 in README beacuse peoply copy (#235) 2021-02-23 23:21:23 -05:00
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
05f0551dbd chore: operating-system -> os (#184)
Schema validation was flagging the old property name
2021-01-20 14:15:22 -05:00
23bdee16bc Clarifications to the README (#167) (#229)
* Update README.md

* Update README.md

Co-authored-by: Bryan MacFarlane <bryanmacfarlane@github.com>

Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
2021-01-20 11:48:26 -05:00
4257181919 Bump acorn from 5.7.3 to 5.7.4 (#122)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-20 11:28:06 -05:00
7f4d5225d8 Bump lodash from 4.17.15 to 4.17.19 (#174)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-20 11:26:01 -05:00
68fafecfa4 refactor: use core.info instead of console.log (#185) 2021-01-20 10:28:35 -05:00
c46424eee2 Merge pull request #219 from actions/v-malob/update-readme-v2
Update readme before releasing actions/setup-node V2
2020-12-16 12:47:21 +03:00
1d846de8c0 Merge branch 'main' into v-malob/update-readme-v2 2020-12-16 12:31:13 +03:00
d06286dee6 Merge pull request #205 from zodman/main
Check for NODE_AUTH_TOKEN overwritten
2020-12-16 12:30:11 +03:00
d8c1b596a6 Merge branch 'main' of github.com:actions/setup-node into main 2020-12-15 11:52:46 -06:00
2bfa943ffb Update build-test.yml 2020-12-15 13:38:55 +03:00
6c8a6e529a Update README.md 2020-12-15 13:36:18 +03:00
27082cecf3 Merge pull request #194 from aminya/arch
Arch option for setup-node
2020-12-10 10:21:45 +03:00
05e7d6cc23 Add e2e arch test 2020-12-09 13:28:47 -06:00
d6fea3c137 update message to be more general
This considers self-hosted runners
2020-12-09 11:27:02 -06:00
4667755142 Merge pull request #216 from actions/joshmgross/add-codeowners
Add CODEOWNERS
2020-12-09 11:22:59 -05:00
2bbfc7698a Add Architecture only example 2020-12-08 16:47:34 -06:00
5984462aaa Rename node-arch to architecture 2020-12-08 16:24:02 -06:00
aabe026707 Merge remote-tracking branch 'upstream/main' into arch 2020-12-08 16:15:00 -06:00
b7cfa22539 Add CODEOWNERS 2020-12-07 16:08:14 -05:00
70b9252472 [Readme] Using check-latest requires v2-beta (#207) 2020-11-19 17:01:35 -05:00
7d147e85af unstage changes 2020-10-27 18:17:58 -06:00
66dfac5328 update comment 2020-10-21 19:02:40 -05:00
312bbeecfd update changes 2020-10-21 18:38:23 -05:00
26a6dcb73b update the index file 2020-10-21 18:34:14 -05:00
f4215cc0e0 fix format 2020-10-21 18:31:20 -05:00
14e150d2b1 update changes 2020-10-21 18:22:21 -05:00
5da2d61209 remove space 2020-10-21 18:21:28 -05:00
a600caf7cc remove debug 2020-10-21 18:20:47 -05:00
8dde5bc004 adding test for NODE_AUTH_TOKEN overwritten 2020-10-21 18:14:34 -05:00
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
2f532cef8f Merge branch 'main' into arch 2020-09-15 21:30:00 -05:00
c211e95e60 Add Licensed To Help Verify Prod Licenses (#180)
* add licensed workflow and config files

* manual dependency verification

* Hide generated license files in pr
2020-09-10 09:23:54 -04:00
99d584aa06 docs: enhance the readme example to include multiple os, version, and archs 2020-09-06 11:32:03 -05:00
2a5c060ce2 fix: add warning for when arch is supplied but version is missing 2020-09-06 11:09:41 -05:00
2801f51f90 chore: build
git clean -ffdx && npm ci && npm run pre-checkin
2020-09-05 06:59:22 -05:00
0a161fe2f9 fix: use arch instead of osArch in INodeVersionInfo 2020-09-05 06:58:15 -05:00
63fffe4411 chore: add line-ending to gitattribute 2020-09-03 13:51:55 -05:00
a83bf51129 test: test using main.run and spying 2020-09-03 12:40:39 -05:00
922f2f9468 test: revert using nock and fixtures 2020-09-03 12:33:53 -05:00
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
66f3e9f7ce feat: add arch to queryDistForMatch 2020-09-03 12:22:16 -05:00
82271389a6 feat: add arch to cacheDir 2020-09-03 12:22:16 -05:00
2e40994c28 feat: add arch to getInfoFromDist 2020-09-03 12:22:16 -05:00
c7e4d38541 feat: add arch to downloading message 2020-09-03 12:18:12 -05:00
3eb4bc9d68 feat: add arch to acquireNodeFromFallbackLocation 2020-09-03 09:03:26 -05:00
bf47decdc2 feat: add arch to tc.find
Co-Authored-By: Tyler Ang-Wanek <tylerw@axosoft.com>
2020-09-03 09:03:26 -05:00
6afbfca452 feat: add arch to getInfoFromManifest 2020-09-03 09:03:26 -05:00
3e84c3523b feat: add arch to INodeVersionInfo 2020-09-03 07:52:40 -05:00
6668516d2a feat: add arch to resolveVersionFromManifest 2020-09-03 07:52:39 -05:00
f27ebaf08b feat: add arch to getNode
Co-Authored-By: Tyler Ang-Wanek <tylerw@axosoft.com>
2020-09-03 07:52:39 -05:00
42d59fbc36 feat: add arch to run 2020-09-03 07:52:39 -05:00
2d8887128d feat: node-arch in action.yml
Co-Authored-By: Tyler Ang-Wanek <tylerw@axosoft.com>
2020-09-03 07:52:39 -05:00
0635b31a61 feat: add readme for architecture
Co-Authored-By: Tyler Ang-Wanek <tylerw@axosoft.com>
2020-09-03 07:52:39 -05:00
59e61b8951 main workflow references 2020-07-22 08:12:24 -04:00
321b6ccb03 Switch from "master" to "main" branch (#171)
* Switch from "master" to "main" branch

* Update README.md
2020-07-20 12:50:59 -04:00
1ae8f4b1fd Implement "check-latest" flag to check if pre-cached version is latest one (#165) 2020-06-29 14:56:37 -04:00
0e2f9cde8b announce v2-beta 2020-05-19 09:57:20 -04:00
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
7c6182c745 Update README.md 2020-05-06 09:58:52 -04:00
a47b2f66c6 Merge pull request #108 from nschonni/patch-2
chore: Swap EOL 8 in example for 12
2020-05-02 11:47:58 -04:00
89ea387bde Merge pull request #141 from fishcharlie/patch-1
Changing node-version default to be latest LTS (12.x)
2020-05-02 11:45:15 -04:00
44c9c18728 Merge pull request #142 from actions/joshmgross/run-tests-on-windows
Run test job on windows-latest
2020-04-21 16:16:40 -04:00
e715d9a456 Merge pull request #137 from actions/joshmgross/log-node-version
Log node and npm versions
2020-04-21 15:45:36 -04:00
b1f2e78536 Use matrix for workflow 2020-04-21 14:43:21 -04:00
55897e37f3 Run test job on windows-latest 2020-04-21 14:39:51 -04:00
46903d1fb1 Await exec calls to ensure proper version ordering 2020-04-21 14:17:29 -04:00
28505ad4d3 Move version to args 2020-04-21 14:13:03 -04:00
2d53d29868 Use actions/exec for getting version 2020-04-21 14:03:26 -04:00
1e163ded31 Quote exec parameters 2020-04-21 11:40:45 -04:00
ffde538781 Only include npm version if npm exists 2020-04-21 11:23:19 -04:00
0cc027b656 Changing node-version default to be latest LTS (12.x) 2020-04-20 17:36:56 -06:00
339aa41a8d Readme update 2020-04-16 18:43:02 -04:00
641e88986e add code of conduct 2020-04-16 14:00:00 -04:00
e99a7e62b2 Add dist changes 2020-04-16 11:47:45 -04:00
0dc69b3a71 Remove extra version logging 2020-04-16 10:56:07 -04:00
52eb8a7524 Log node and npm version 2020-04-16 10:45:55 -04:00
83c9f7a7df Update tool-cache for download retries (#120) 2020-03-10 11:51:57 -04:00
ada4b782b3 chore: Use checkout@v2 for code examples (#107) 2020-02-06 14:52:33 -05:00
1c5c1375b3 consume getJson function for better error messages (#110) 2020-02-05 11:20:33 -05:00
6b7f6c9fa6 chore: Swap EOL 8 in example for 12 2020-01-31 02:12:22 -05:00
d123f10543 follow proxy settings (#105) 2020-01-27 10:37:12 -05:00
9a99bb3e35 Merge pull request #88 from actions/arm-installer
Get correct url for arm dist
2019-11-20 15:46:02 -05:00
93313caf82 Add extra info 2019-11-20 15:30:44 -05:00
43d44139c7 Get correct url for arm dist 2019-11-20 12:21:56 -05:00
6ecfd2dcb2 Merge pull request #66 from phishy/patch-1
Update README.md
2019-10-18 16:37:52 -04:00
466ce3c2f0 Update README.md 2019-10-11 10:27:02 -04:00
f499b0c1ab Update README.md 2019-09-27 07:31:22 -05:00
e565252a9d Fixing checkout to reference v1 in readme 2019-09-12 15:54:53 -04:00
c35dd24c52 Deprecate version property (#54) 2019-09-12 10:30:15 -04:00
4fd9403fe5 Fix example to use NPM_TOKEN instead of YARN_TOKEN. (#57) 2019-09-10 15:39:39 -04:00
ca2e28376a Example showing how to use this to install private packages securely. (#56) 2019-09-10 13:32:30 -04:00
7a3ce83626 Add setting for always-auth (#48)
* Add setting for always-auth

- https://docs.npmjs.com/misc/config#always-auth
- Allow private repos for stuff like artifactory to work

* Fix tests for always-auth
2019-09-03 10:57:45 -04:00
Kid
57adacb752 remove unnessary install yarn command (#50) 2019-09-03 10:53:12 -04:00
7af5963081 Update .gitignore (#40) 2019-08-26 10:54:54 -04:00
1ba3bc7e28 Bump lodash from 4.17.11 to 4.17.15 (#45)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-24 12:13:18 -04:00
d43864199a Force all scope names to be lowercased (#39)
Fixes #38
2019-08-21 22:46:35 -04:00
3d792c1dbd Consume toolkit from npmjs (#36) 2019-08-20 10:29:19 -04:00
a0c716db3e Make typed-rest-client dependency explicit 2019-08-19 14:14:33 -04:00
1c24df3126 User agent 2019-08-16 14:05:26 -04:00
dd2e8a486f Use node-version instead of version (#28)
* Use node-version instead of version

* Add deprecation date
2019-08-13 16:32:09 -04:00
d963e800e3 Add badge 2019-08-12 15:10:38 -04:00
27212a1fbb Update action name 2019-08-12 14:39:33 -04:00
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
0675b87d74 Update installer.js (#24)
* Update installer.js

* Update installer.ts

* Update installer.js
2019-08-05 22:23:46 -04:00
213c968cb9 Update io (#22) 2019-08-05 16:46:12 -04:00
345 changed files with 196961 additions and 19186 deletions

6
.eslintignore Normal file
View File

@ -0,0 +1,6 @@
# Ignore list
/*
# Do not ignore these folders:
!__tests__/
!src/

51
.eslintrc.js Normal file
View File

@ -0,0 +1,51 @@
// This is a reusable configuration file copied from https://github.com/actions/reusable-workflows/tree/main/reusable-configurations. Please don't make changes to this file as it's the subject of an automatic update.
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:eslint-plugin-jest/recommended',
'eslint-config-prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'eslint-plugin-node', 'eslint-plugin-jest'],
rules: {
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-ignore': 'allow-with-description'
}
],
'no-console': 'error',
'yoda': 'error',
'prefer-const': [
'error',
{
destructuring: 'all'
}
],
'no-control-regex': 'off',
'no-constant-condition': ['error', {checkLoops: false}],
'node/no-extraneous-import': 'error'
},
overrides: [
{
files: ['**/*{test,spec}.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'jest/no-standalone-expect': 'off',
'jest/no-conditional-expect': 'off',
'no-console': 'off',
}
}
],
env: {
node: true,
es6: true,
'jest/globals': true
}
};

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
* text=auto eol=lf
.licenses/** -diff linguist-generated=true

38
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@ -0,0 +1,38 @@
---
name: Bug report
about: Create a bug report
title: ''
labels: bug, needs triage
assignees: ''
---
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
<!--- Before opening up a new bug report, please make sure to check for similar existing issues -->
**Description:**
A clear and concise description of what the bug is.
**Action version:**
Specify the action version
**Platform:**
- [ ] Ubuntu
- [ ] macOS
- [ ] Windows
**Runner type:**
- [ ] Hosted
- [ ] Self-hosted
**Tools version:**
<!--- Please specify versions of node and package manager (npm, yarn, pnpm and etc)-->
**Repro steps:**
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
**Expected behavior:**
A description of what you expected to happen.
**Actual behavior:**
A description of what is actually happening.

1
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1 @@
blank_issues_enabled: false

View File

@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: feature request, needs triage
assignees: ''
---
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
<!--- Before opening up a new feature request, please make sure to check for similar existing issues and pull requests -->
**Description:**
Describe your proposal.
**Justification:**
Justification or a use case for your proposal.
**Are you willing to submit a PR?**
<!--- We accept contributions! -->

9
.github/pull_request_template.md vendored Normal file
View File

@ -0,0 +1,9 @@
**Description:**
Describe your changes.
**Related issue:**
Add link to the related issue.
**Check list:**
- [ ] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.

11
.github/tsc.json vendored
View File

@ -4,12 +4,13 @@
"owner": "tsc", "owner": "tsc",
"pattern": [ "pattern": [
{ {
"regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$", "regexp": "^([^\\s].*)[\\(:](\\d+)[,:](\\d+)(?:\\):\\s+|\\s+-\\s+)(error|warning|info)\\s+TS(\\d+)\\s*:\\s*(.*)$",
"file": 1, "file": 1,
"location": 2, "line": 2,
"severity": 3, "column": 3,
"code": 4, "severity": 4,
"message": 5 "code