Skip to content

Commit

Permalink
XS✔ ◾ Build Fix (#456)
Browse files Browse the repository at this point in the history
## Summary

### Motivation

Following recent changes to <https://json.schemastore.org/package.json>,
the main build loop started to fail.

### Technical

Updating the contents of the `package.json` file to downgrade the JSON
schema to a supported version, as per the previous iteration of the
file.

This change also adds `workflow_dispatch` to the build workflow, to
allow it to be run manually if required for testing.

## Testing

### Test Types

- [ ] Unit tests
- [X] Manual tests

### Unit Test Coverage

100%
  • Loading branch information
muiriswoulfe authored Jan 22, 2024
1 parent 63e7442 commit ec0e791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- main
schedule:
- cron: 0 0 * * 1
workflow_dispatch: null

permissions: {}

Expand Down Expand Up @@ -215,6 +216,7 @@ jobs:
run: |-
$FileContent = Get-Content -Path 'package.schema.json' -Raw
$FileContent = $FileContent -replace ',\s+".+": {\s+"\$ref": "https:\/\/json\.schemastore\.org\/.+\s+}', ''
$FileContent = $FileContent -replace 'http://json-schema.org/draft-07/schema#', 'http://json-schema.org/draft-04/schema#'
Set-Content -NoNewline -Path 'package.schema.json' -Value $FileContent
- name: Validate package.json
Expand Down

0 comments on commit ec0e791

Please sign in to comment.