From 3190bbe018d675e3480833db21f97f2591257fae Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Oct 2022 01:10:57 +0000 Subject: [PATCH 1/2] Bump @types/node from 16.18.2 to 16.18.3 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.2 to 16.18.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2ca786c..722afd0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "devDependencies": { "@actions/io": "^1.1.2", "@types/jest": "^28.1.8", - "@types/node": "^16.18.2", + "@types/node": "^16.18.3", "@types/semver": "^7.3.13", "@vercel/ncc": "^0.34.0", "jest": "^28.1.3", @@ -1397,9 +1397,9 @@ } }, "node_modules/@types/node": { - "version": "16.18.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.2.tgz", - "integrity": "sha512-KIGQJyya+opDCFvDSZMNNS899ov5jlNdtN7PypgHWeb8e+5vWISdwTRo/ClsNVlmDihzOGqFyNBDamUs7TQQCA==", + "version": "16.18.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.3.tgz", + "integrity": "sha512-jh6m0QUhIRcZpNv7Z/rpN+ZWXOicUUQbSoWks7Htkbb9IjFQj4kzcX/xFCkjstCj5flMsN8FiSvt+q+Tcs4Llg==", "dev": true }, "node_modules/@types/prettier": { @@ -6820,9 +6820,9 @@ } }, "@types/node": { - "version": "16.18.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.2.tgz", - "integrity": "sha512-KIGQJyya+opDCFvDSZMNNS899ov5jlNdtN7PypgHWeb8e+5vWISdwTRo/ClsNVlmDihzOGqFyNBDamUs7TQQCA==", + "version": "16.18.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.3.tgz", + "integrity": "sha512-jh6m0QUhIRcZpNv7Z/rpN+ZWXOicUUQbSoWks7Htkbb9IjFQj4kzcX/xFCkjstCj5flMsN8FiSvt+q+Tcs4Llg==", "dev": true }, "@types/prettier": { diff --git a/package.json b/package.json index 79f60b8..1c598ff 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "devDependencies": { "@actions/io": "^1.1.2", "@types/jest": "^28.1.8", - "@types/node": "^16.18.2", + "@types/node": "^16.18.3", "@types/semver": "^7.3.13", "@vercel/ncc": "^0.34.0", "jest": "^28.1.3", From 988bd0d5b4bcdfc14d539a362cfee2cb08c856e5 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 31 Oct 2022 02:24:33 -0700 Subject: [PATCH 2/2] Install referenced schema in "Check npm" workflow The "Check npm" GitHub Actions workflow validates the repository's `package.json` npm manifest file against its JSON schema to catch any problems with its data format. In order to avoid duplication of content, JSON schemas may reference other schemas via the `$ref` keyword. The `package.json` schema was recently updated to share resources with the npm-badges configuration schema, which caused the validation to start failing: schema /home/runner/work/_temp/json-schema/package-json-schema.json is invalid error: can't resolve reference https://json.schemastore.org/npm-badges.json from id # The solution is to configure the workflow to download that schema as well and also to provide its path to the avj-cli validator via an `-r` flag. --- .github/workflows/check-npm.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/check-npm.yml b/.github/workflows/check-npm.yml index d789201..576610e 100644 --- a/.github/workflows/check-npm.yml +++ b/.github/workflows/check-npm.yml @@ -72,6 +72,16 @@ jobs: location: ${{ runner.temp }}/json-schema file-name: jscpd-schema.json + # This schema is referenced by the package.json schema, so must also be accessible. + - name: Download JSON schema for Prettier configuration file + id: download-npm-badges-schema + uses: carlosperate/download-file-action@v2 + with: + # See: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/npm-badges.json + file-url: https://json.schemastore.org/npm-badges.json + location: ${{ runner.temp }}/json-schema + file-name: npm-badges-schema.json + # This schema is referenced by the package.json schema, so must also be accessible. - name: Download JSON schema for Prettier configuration file id: download-prettierrc-schema @@ -114,6 +124,7 @@ jobs: -r "${{ steps.download-ava-schema.outputs.file-path }}" \ -r "${{ steps.download-eslintrc-schema.outputs.file-path }}" \ -r "${{ steps.download-jscpd-schema.outputs.file-path }}" \ + -r "${{ steps.download-npm-badges-schema.outputs.file-path }}" \ -r "${{ steps.download-prettierrc-schema.outputs.file-path }}" \ -r "${{ steps.download-semantic-release-schema.outputs.file-path }}" \ -r "${{ steps.download-stylelintrc-schema.outputs.file-path }}" \