From fc243fce3040cd0f085c9704118f849ebacbe9d3 Mon Sep 17 00:00:00 2001 From: luca <681992+lukka@users.noreply.github.com> Date: Sun, 11 Oct 2020 20:38:51 +0200 Subject: [PATCH] consume v0.15 of @lukka scoped packages --- .gitmodules | 3 -- CONTRIBUTING.md | 10 ++++ package-lock.json | 130 +++++++++++++++++++++++++++++----------------- package.json | 8 +-- 4 files changed, 96 insertions(+), 55 deletions(-) diff --git a/.gitmodules b/.gitmodules index b89b4ac3..e69de29b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "libs"] - path = libs - url = https://github.com/lukka/run-cmake-vcpkg-action-libs.git diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ed670f35..fb231fd5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,6 +10,16 @@ The software is provided as is, there is no warranty of any kind. All users are ## Prerequisites [gulp 4](https://www.npmjs.com/package/gulp4) globally installed. +### Setup for GitHub Registry public packages + +`run-cmake` depends on public NPM packages published by [lukka/run-cmake-vcpkg-action-libs](https://github.com/lukka/run-cmake-vcpkg-action-libs) in the [GitHub Packages registry](https://docs.github.com/en/free-pro-team@latest/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages). +Unexpectedly, a public package still requires authentication when downloading it, hence if you want to `npm install` those packages correctly, you need to obtain a token with `read:packages` scope. Then create in the root of the repository a `.npmrc` file with the following content: + + //npm.pkg.github.com/:_authToken=YOURTOKEN + @lukka:registry=https://npm.pkg.github.com/ + +__Note__: **Never commit this `.npmrc` file!** + ## Build and lint Build with `tsc` running: diff --git a/package-lock.json b/package-lock.json index 45b48385..7a4b5ff7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -495,16 +495,16 @@ } }, "@lukka/action-lib": { - "version": "0.14.1", - "resolved": "https://npm.pkg.github.com/download/@lukka/action-lib/0.14.1/4da0cf2f8cd0da9c204f30780962e8e39e4e4d1427c74eb7830a23f0b2764dae", - "integrity": "sha512-lRBE9Kl+UkNsonvpeEs8rsoQpUa1EhZ4n2ztAkHTgsdXN9FqmSiUEp3a+8rSWfewCnVM8FND1/fJwHz+11aD3A==", + "version": "0.15.1", + "resolved": "https://npm.pkg.github.com/download/@lukka/action-lib/0.15.1/f09f907fa9561e3bdab4ed09a368ff4e49de20cfd53fd862ad4ec80cbe3428ec", + "integrity": "sha512-/Nj8aDBk/aK5UtXY159fGzUb+n+SP3qM5Hqrvi2DFbN14IZasfQMml3SqQQeSdUYWp6cboVcaF/LrU2ABvthlg==", "requires": { - "@actions/core": "^1.2.3", - "@actions/exec": "^1.0.3", - "@actions/github": "^2.1.1", + "@actions/core": "^1.2.6", + "@actions/exec": "^1.0.4", + "@actions/github": "^4.0.0", "@actions/io": "^1.0.2", - "@lukka/base-lib": "^0.14.1", - "@lukka/base-util-lib": "^0.14.1", + "@lukka/base-lib": "^0.15.1", + "@lukka/base-util-lib": "^0.15.1", "@types/adm-zip": "^0.4.32", "@types/follow-redirects": "^1.8.0", "@types/q": "^1.5.1", @@ -520,44 +520,47 @@ }, "dependencies": { "@actions/github": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-2.2.0.tgz", - "integrity": "sha512-9UAZqn8ywdR70n3GwVle4N8ALosQs4z50N7XMXrSTUVOmVpaBC5kE3TRTT7qQdi3OaQV24mjGuJZsHUmhD+ZXw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-4.0.0.tgz", + "integrity": "sha512-Ej/Y2E+VV6sR9X7pWL5F3VgEWrABaT292DRqRU6R4hnQjPtC/zD3nagxVdXWiRQvYDh8kHXo7IDmG42eJ/dOMA==", "requires": { - "@actions/http-client": "^1.0.3", - "@octokit/graphql": "^4.3.1", - "@octokit/rest": "^16.43.1" + "@actions/http-client": "^1.0.8", + "@octokit/core": "^3.0.0", + "@octokit/plugin-paginate-rest": "^2.2.3", + "@octokit/plugin-rest-endpoint-methods": "^4.0.0" } }, - "@octokit/graphql": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.5.4.tgz", - "integrity": "sha512-ITpZ+dQc0cXAW1FmDkHJJM+8Lb6anUnin0VB5hLBilnYVdLC0ICFU/KIvT7OXfW9S81DE3U4Vx2EypDG1OYaPA==", + "@octokit/plugin-paginate-rest": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.4.0.tgz", + "integrity": "sha512-YT6Klz3LLH6/nNgi0pheJnUmTFW4kVnxGft+v8Itc41IIcjl7y1C8TatmKQBbCSuTSNFXO5pCENnqg6sjwpJhg==", "requires": { - "@octokit/request": "^5.3.0", - "@octokit/types": "^5.0.0", - "universal-user-agent": "^6.0.0" + "@octokit/types": "^5.5.0" + } + }, + "@octokit/plugin-rest-endpoint-methods": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.2.0.tgz", + "integrity": "sha512-1/qn1q1C1hGz6W/iEDm9DoyNoG/xdFDt78E3eZ5hHeUfJTLJgyAMdj9chL/cNBHjcjd+FH5aO1x0VCqR2RE0mw==", + "requires": { + "@octokit/types": "^5.5.0", + "deprecation": "^2.3.1" } }, "@octokit/types": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-5.4.1.tgz", - "integrity": "sha512-OlMlSySBJoJ6uozkr/i03nO5dlYQyE05vmQNZhAh9MyO4DPBP88QlwsDVLmVjIMFssvIZB6WO0ctIGMRG+xsJQ==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-5.5.0.tgz", + "integrity": "sha512-UZ1pErDue6bZNjYOotCNveTXArOMZQFG6hKJfOnGnulVCMcVVi7YIIuuR4WfBhjo7zgpmzn/BkPDnUXtNx+PcQ==", "requires": { "@types/node": ">= 8" } - }, - "universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" } } }, "@lukka/base-lib": { - "version": "0.14.1", - "resolved": "https://npm.pkg.github.com/download/@lukka/base-lib/0.14.1/6e5e753bf6c9fd3855ffa1b66056c2a68b074ddf0f23a08e7a99ba18e6cce3dc", - "integrity": "sha512-4hDpxY4TCkzjoGv9ECr33ZEX55u9KgkiZh2KD0ZKADOIt2sAYFJ7A/drP1zsTscMO5iK8cUOcuq7k7aGncrWPg==", + "version": "0.15.1", + "resolved": "https://npm.pkg.github.com/download/@lukka/base-lib/0.15.1/8393b739ef01cecb95b374c7e2440ba8526b6b7dfd65c69c8173b96e4a0d652f", + "integrity": "sha512-M8KZv7dNUZub4mgHjU9povnaOBohmSBbkNdP6vCOuraJ+DN6Y4ozBVwsAQlJ4DL1wK3NNdfVebtDbGbJA3ScSg==", "requires": { "@types/adm-zip": "^0.4.32", "@types/follow-redirects": "^1.8.0", @@ -574,9 +577,9 @@ } }, "@lukka/base-util-lib": { - "version": "0.14.1", - "resolved": "https://npm.pkg.github.com/download/@lukka/base-util-lib/0.14.1/d90451867e45656ba06f83e8339169ecfcc8f3ef8d190fcb93086d63c31c2123", - "integrity": "sha512-/yU+WT8XGLRTM5yM35J021PSe0OBea48U1/W94yIn/Yp7/p6+YU3Atb/1sCjwxbL8kGvh2CoL5txGvP/y16Mfg==", + "version": "0.15.1", + "resolved": "https://npm.pkg.github.com/download/@lukka/base-util-lib/0.15.1/f9185cc393dd777c67988dcdc4389779c85b1f904c88123311285744501c693e", + "integrity": "sha512-tY6oEHX5lGxTmR5+bydpQbkfp4aXkEo5VR2RQlf/yEAODF7ElLSrhD3E3PE7eweVwUW00SehxwL4YnXCFsTD8w==", "requires": { "@types/adm-zip": "^0.4.32", "@types/follow-redirects": "^1.8.0", @@ -593,13 +596,13 @@ } }, "@lukka/run-vcpkg-lib": { - "version": "0.14.1", - "resolved": "https://npm.pkg.github.com/download/@lukka/run-vcpkg-lib/0.14.1/d7d9976c892ee379daedc218c9dda062b3b7acba160c52275886c38034b2870e", - "integrity": "sha512-KClIxE7GS1Cf/dlPwclREhe1Oqjr02k+VGWNGdiBu8Mx3rG1k6GxefIVfRc6mWEwGQHaS5ASWYGBsDRdlqfozQ==", + "version": "0.15.1", + "resolved": "https://npm.pkg.github.com/download/@lukka/run-vcpkg-lib/0.15.1/ce2c11bac29b408f7ec21cb6efb6c4df88d728dcf88de16629ea3581aadb96d8", + "integrity": "sha512-Zu3jGUk85oJQxxbvAI7yDUmybToxGAUaLRGr+qAs7/pZpc3NDnXDg+OMhP2vehnvxSvlgOk83XunG3uOq5VZrg==", "requires": { - "@lukka/action-lib": "^0.14.1", - "@lukka/base-lib": "^0.14.1", - "@lukka/base-util-lib": "^0.14.1", + "@lukka/action-lib": "^0.15.1", + "@lukka/base-lib": "^0.15.1", + "@lukka/base-util-lib": "^0.15.1", "@types/adm-zip": "^0.4.32", "@types/follow-redirects": "^1.8.0", "@types/q": "^1.5.1", @@ -613,13 +616,6 @@ "lodash": ">=4.17.19", "minimist": ">=1.2.2", "using-statement": "^0.3.1" - }, - "dependencies": { - "lodash": { - "version": "4.17.20", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", - "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" - } } }, "@nodelib/fs.scandir": { @@ -653,6 +649,44 @@ "@octokit/types": "^4.0.1" } }, + "@octokit/core": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.1.2.tgz", + "integrity": "sha512-AInOFULmwOa7+NFi9F8DlDkm5qtZVmDQayi7TUgChE3yeIGPq0Y+6cAEXPexQ3Ea+uZy66hKEazR7DJyU+4wfw==", + "requires": { + "@octokit/auth-token": "^2.4.0", + "@octokit/graphql": "^4.3.1", + "@octokit/request": "^5.4.0", + "@octokit/types": "^5.0.0", + "before-after-hook": "^2.1.0", + "universal-user-agent": "^6.0.0" + }, + "dependencies": { + "@octokit/graphql": { + "version": "4.5.6", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.5.6.tgz", + "integrity": "sha512-Rry+unqKTa3svswT2ZAuqenpLrzJd+JTv89LTeVa5UM/5OX8o4KTkPL7/1ABq4f/ZkELb0XEK/2IEoYwykcLXg==", + "requires": { + "@octokit/request": "^5.3.0", + "@octokit/types": "^5.0.0", + "universal-user-agent": "^6.0.0" + } + }, + "@octokit/types": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-5.5.0.tgz", + "integrity": "sha512-UZ1pErDue6bZNjYOotCNveTXArOMZQFG6hKJfOnGnulVCMcVVi7YIIuuR4WfBhjo7zgpmzn/BkPDnUXtNx+PcQ==", + "requires": { + "@types/node": ">= 8" + } + }, + "universal-user-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" + } + } + }, "@octokit/endpoint": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.2.tgz", diff --git a/package.json b/package.json index a922eaeb..6c484cb8 100644 --- a/package.json +++ b/package.json @@ -42,10 +42,10 @@ "@actions/exec": "^1.0.1", "@actions/github": "^1.1.0", "@actions/io": "^1.0.1", - "@lukka/base-lib": "0.14.1", - "@lukka/base-util-lib": "0.14.1", - "@lukka/action-lib": "0.14.1", - "@lukka/run-vcpkg-lib": "0.14.1", + "@lukka/base-lib": "^0.15.1", + "@lukka/base-util-lib": "^0.15.1", + "@lukka/action-lib": "^0.15.1", + "@lukka/run-vcpkg-lib": "^0.15.1", "@types/adm-zip": "^0.4.32", "@types/follow-redirects": "^1.8.0", "@types/jest": "^24.9.0",