Skip to content

Commit 43aaed1

Browse files
authored
Merge pull request #121 from per1234/fix-check-npm
Install referenced schemas in "Check npm" workflow
2 parents 70959ea + d0d9da2 commit 43aaed1

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/check-npm.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
file-name: eslintrc-schema.json
6464

6565
# This schema is referenced by the package.json schema, so must also be accessible.
66-
- name: Download JSON schema for eslintrc.json
66+
- name: Download JSON schema for Prettier configuration file
6767
id: download-prettierrc-schema
6868
uses: carlosperate/download-file-action@v1
6969
with:
@@ -72,6 +72,26 @@ jobs:
7272
location: ${{ runner.temp }}/json-schema
7373
file-name: prettierrc-schema.json
7474

75+
# This schema is referenced by the package.json schema, so must also be accessible.
76+
- name: Download JSON schema for semantic-release
77+
id: download-semantic-release-schema
78+
uses: carlosperate/download-file-action@v1
79+
with:
80+
# See: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/semantic-release.json
81+
file-url: https://json.schemastore.org/semantic-release.json
82+
location: ${{ runner.temp }}/json-schema
83+
file-name: semantic-release-schema.json
84+
85+
# This schema is referenced by the package.json schema, so must also be accessible.
86+
- name: Download JSON schema for .stylelintrc
87+
id: download-stylelintrc-schema
88+
uses: carlosperate/download-file-action@v1
89+
with:
90+
# See: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/stylelintrc.json
91+
file-url: https://json.schemastore.org/stylelintrc.json
92+
location: ${{ runner.temp }}/json-schema
93+
file-name: stylelintrc-schema.json
94+
7595
- name: Install JSON schema validator
7696
# package.json schema is draft-04, which is not supported by ajv-cli >=4.
7797
run: sudo npm install --global [email protected]
@@ -84,6 +104,8 @@ jobs:
84104
-r "${{ steps.download-ava-schema.outputs.file-path }}" \
85105
-r "${{ steps.download-eslintrc-schema.outputs.file-path }}" \
86106
-r "${{ steps.download-prettierrc-schema.outputs.file-path }}" \
107+
-r "${{ steps.download-semantic-release-schema.outputs.file-path }}" \
108+
-r "${{ steps.download-stylelintrc-schema.outputs.file-path }}" \
87109
-d "./**/package.json"
88110
89111
check-sync:

0 commit comments

Comments
 (0)