|
72 | 72 | location: ${{ runner.temp }}/json-schema
|
73 | 73 | file-name: prettierrc-schema.json
|
74 | 74 |
|
| 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 | + |
75 | 95 | - name: Install JSON schema validator
|
76 | 96 | # package.json schema is draft-04, which is not supported by ajv-cli >=4.
|
77 | 97 | run: sudo npm install --global [email protected]
|
|
84 | 104 | -r "${{ steps.download-ava-schema.outputs.file-path }}" \
|
85 | 105 | -r "${{ steps.download-eslintrc-schema.outputs.file-path }}" \
|
86 | 106 | -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 }}" \ |
87 | 109 | -d "./**/package.json"
|
88 | 110 |
|
89 | 111 | check-sync:
|
|
0 commit comments