From ef886342dad11a04c0c9beb7e873525ea788bcbf Mon Sep 17 00:00:00 2001 From: Steven Crader Date: Wed, 3 Apr 2024 21:48:49 -0700 Subject: [PATCH] Update versions and fix workflow --- .github/workflows/lint-api.yml | 27 ++++++--- package.json | 2 +- yarn.lock | 108 ++++++++++++++++++++++++++++----- 3 files changed, 111 insertions(+), 26 deletions(-) diff --git a/.github/workflows/lint-api.yml b/.github/workflows/lint-api.yml index 14c3541..feef474 100644 --- a/.github/workflows/lint-api.yml +++ b/.github/workflows/lint-api.yml @@ -5,13 +5,22 @@ jobs: name: Run Linter runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: borales/actions-yarn@v3.0.0 + - uses: actions/checkout@v4 + + - name: Enable Corepack + run: corepack enable + + - name: Setup Node + uses: actions/setup-node@v3 with: - cmd: install # will run `yarn install` command - - uses: borales/actions-yarn@v3.0.0 - with: - cmd: build # will run `yarn build` command - - uses: borales/actions-yarn@v3.0.0 - with: - cmd: lint # will run `yarn test` command + node-version-file: '.nvmrc' + cache: "yarn" + + - name: Install project dependencies + run: yarn + + - name: Run Lint + run: yarn run build + + - name: Run Lint + run: yarn run lint diff --git a/package.json b/package.json index 62d33a1..44d881d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.12.0", "private": true, "devDependencies": { - "@redocly/cli": "^1.3.0", + "@redocly/cli": "^1.10.6", "copyfiles": "^2.4.1", "http-server": "^14.1.1", "livereload": "^0.9.3", diff --git a/yarn.lock b/yarn.lock index 259a732..f429941 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1690,21 +1690,24 @@ __metadata: languageName: node linkType: hard -"@redocly/cli@npm:^1.3.0": - version: 1.3.0 - resolution: "@redocly/cli@npm:1.3.0" +"@redocly/cli@npm:^1.10.6": + version: 1.10.6 + resolution: "@redocly/cli@npm:1.10.6" dependencies: - "@redocly/openapi-core": "npm:1.3.0" + "@redocly/openapi-core": "npm:1.10.6" + abort-controller: "npm:^3.0.0" chokidar: "npm:^3.5.1" colorette: "npm:^1.2.0" core-js: "npm:^3.32.1" + form-data: "npm:^4.0.0" get-port-please: "npm:^3.0.1" glob: "npm:^7.1.6" handlebars: "npm:^4.7.6" mobx: "npm:^6.0.4" + node-fetch: "npm:^2.6.1" react: "npm:^17.0.0 || ^18.2.0" react-dom: "npm:^17.0.0 || ^18.2.0" - redoc: "npm:~2.1.2" + redoc: "npm:~2.1.3" semver: "npm:^7.5.2" simple-websocket: "npm:^9.0.0" styled-components: "npm:^6.0.7" @@ -1712,16 +1715,23 @@ __metadata: bin: openapi: bin/cli.js redocly: bin/cli.js - checksum: 10/f0ce4153484f8f95804bd10a19bd5969f4957e1432d58b33608ff462c91159e03429e9d6e906d9e250eb6a7fd2a1492e349c5b51c005d33ab91c356e4d261f6f + checksum: 10/a823a665861096c96edc24327b37955311666b23d94f63d1ede1d260a4e3cd2f8d89586207edf3c8e9d9296625e347ea09f6d464b2e56810a02bd6da3c1de054 languageName: node linkType: hard -"@redocly/openapi-core@npm:1.3.0": - version: 1.3.0 - resolution: "@redocly/openapi-core@npm:1.3.0" +"@redocly/config@npm:^0.1.4": + version: 0.1.6 + resolution: "@redocly/config@npm:0.1.6" + checksum: 10/5bf099245ac9a955a0eb4649f6996575142932de7eb1f276b9c0cb738bb42e9e58de4872cdd6f28f413d12a40727b23a5beaca45d9d5076bbe40297024e0e620 + languageName: node + linkType: hard + +"@redocly/openapi-core@npm:1.10.6": + version: 1.10.6 + resolution: "@redocly/openapi-core@npm:1.10.6" dependencies: "@redocly/ajv": "npm:^8.11.0" - "@types/node": "npm:^14.11.8" + "@redocly/config": "npm:^0.1.4" colorette: "npm:^1.2.0" js-levenshtein: "npm:^1.1.6" js-yaml: "npm:^4.1.0" @@ -1730,7 +1740,7 @@ __metadata: node-fetch: "npm:^2.6.1" pluralize: "npm:^8.0.0" yaml-ast-parser: "npm:0.0.43" - checksum: 10/aa160cb6dc22883db2db6697293ebf774518cb190c72527d221b37a619ab2807841ebb1e80bd80b84e1d5a9a91ce8bfa81f331d0b731d4df60809e84a5dc0051 + checksum: 10/f20ed1ce6756f90f69866a92e9c8a5440749b4a610999f35af38603509abf34089cb8e825a9c09344792db0d4dfd8294d819021f408d350c43f65018fe1b65d9 languageName: node linkType: hard @@ -1787,6 +1797,15 @@ __metadata: languageName: node linkType: hard +"abort-controller@npm:^3.0.0": + version: 3.0.0 + resolution: "abort-controller@npm:3.0.0" + dependencies: + event-target-shim: "npm:^5.0.0" + checksum: 10/ed84af329f1828327798229578b4fe03a4dd2596ba304083ebd2252666bdc1d7647d66d0b18704477e1f8aa315f055944aa6e859afebd341f12d0a53c37b4b40 + languageName: node + linkType: hard + "agent-base@npm:6, agent-base@npm:^6.0.2": version: 6.0.2 resolution: "agent-base@npm:6.0.2" @@ -1927,6 +1946,13 @@ __metadata: languageName: node linkType: hard +"asynckit@npm:^0.4.0": + version: 0.4.0 + resolution: "asynckit@npm:0.4.0" + checksum: 10/3ce727cbc78f69d6a4722517a58ee926c8c21083633b1d3fdf66fd688f6c127a53a592141bd4866f9b63240a86e9d8e974b13919450bd17fa33c2d22c4558ad8 + languageName: node + linkType: hard + "available-typed-arrays@npm:^1.0.5": version: 1.0.5 resolution: "available-typed-arrays@npm:1.0.5" @@ -2279,6 +2305,15 @@ __metadata: languageName: node linkType: hard +"combined-stream@npm:^1.0.8": + version: 1.0.8 + resolution: "combined-stream@npm:1.0.8" + dependencies: + delayed-stream: "npm:~1.0.0" + checksum: 10/2e969e637d05d09fa50b02d74c83a1186f6914aae89e6653b62595cc75a221464f884f55f231b8f4df7a49537fba60bdc0427acd2bf324c09a1dbb84837e36e4 + languageName: node + linkType: hard + "commander@npm:^4.0.1": version: 4.1.1 resolution: "commander@npm:4.1.1" @@ -2455,6 +2490,13 @@ __metadata: languageName: node linkType: hard +"delayed-stream@npm:~1.0.0": + version: 1.0.0 + resolution: "delayed-stream@npm:1.0.0" + checksum: 10/46fe6e83e2cb1d85ba50bd52803c68be9bd953282fa7096f51fc29edd5d67ff84ff753c51966061e5ba7cb5e47ef6d36a91924eddb7f3f3483b1c560f77a0020 + languageName: node + linkType: hard + "delegates@npm:^1.0.0": version: 1.0.0 resolution: "delegates@npm:1.0.0" @@ -2619,6 +2661,13 @@ __metadata: languageName: node linkType: hard +"event-target-shim@npm:^5.0.0": + version: 5.0.1 + resolution: "event-target-shim@npm:5.0.1" + checksum: 10/49ff46c3a7facbad3decb31f597063e761785d7fdb3920d4989d7b08c97a61c2f51183e2f3a03130c9088df88d4b489b1b79ab632219901f184f85158508f4c8 + languageName: node + linkType: hard + "eventemitter3@npm:^4.0.0, eventemitter3@npm:^4.0.7": version: 4.0.7 resolution: "eventemitter3@npm:4.0.7" @@ -2675,6 +2724,17 @@ __metadata: languageName: node linkType: hard +"form-data@npm:^4.0.0": + version: 4.0.0 + resolution: "form-data@npm:4.0.0" + dependencies: + asynckit: "npm:^0.4.0" + combined-stream: "npm:^1.0.8" + mime-types: "npm:^2.1.12" + checksum: 10/7264aa760a8cf09482816d8300f1b6e2423de1b02bba612a136857413fdc96d7178298ced106817655facc6b89036c6e12ae31c9eb5bdc16aabf502ae8a5d805 + languageName: node + linkType: hard + "fs-minipass@npm:^2.0.0, fs-minipass@npm:^2.1.0": version: 2.1.0 resolution: "fs-minipass@npm:2.1.0" @@ -3619,6 +3679,22 @@ __metadata: languageName: node linkType: hard +"mime-db@npm:1.52.0": + version: 1.52.0 + resolution: "mime-db@npm:1.52.0" + checksum: 10/54bb60bf39e6f8689f6622784e668a3d7f8bed6b0d886f5c3c446cb3284be28b30bf707ed05d0fe44a036f8469976b2629bbea182684977b084de9da274694d7 + languageName: node + linkType: hard + +"mime-types@npm:^2.1.12": + version: 2.1.35 + resolution: "mime-types@npm:2.1.35" + dependencies: + mime-db: "npm:1.52.0" + checksum: 10/89aa9651b67644035de2784a6e665fc685d79aba61857e02b9c8758da874a754aed4a9aced9265f5ed1171fd934331e5516b84a7f0218031b6fa0270eca1e51a + languageName: node + linkType: hard + "mime@npm:^1.6.0": version: 1.6.0 resolution: "mime@npm:1.6.0" @@ -4174,7 +4250,7 @@ __metadata: version: 0.0.0-use.local resolution: "pi_api_docs@workspace:." dependencies: - "@redocly/cli": "npm:^1.3.0" + "@redocly/cli": "npm:^1.10.6" copyfiles: "npm:^2.4.1" http-server: "npm:^14.1.1" livereload: "npm:^0.9.3" @@ -4445,9 +4521,9 @@ __metadata: languageName: node linkType: hard -"redoc@npm:~2.1.2": - version: 2.1.2 - resolution: "redoc@npm:2.1.2" +"redoc@npm:~2.1.3": + version: 2.1.3 + resolution: "redoc@npm:2.1.3" dependencies: "@redocly/openapi-core": "npm:^1.0.0-rc.2" classnames: "npm:^2.3.1" @@ -4476,7 +4552,7 @@ __metadata: react: ^16.8.4 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.4 || ^17.0.0 || ^18.0.0 styled-components: ^4.1.1 || ^5.1.1 || ^6.0.5 - checksum: 10/331db70a6ef3f3c9669bac35a1dd3650785b76590077223e12d19af54cac15fa8cb8d33bd3f0d452cb3b6b63f10f9004447f4e121bc58727b35d1b48a21d5c17 + checksum: 10/83cdc99c9f4035331fd062289f10c2df781b3d03e5153448079e26fd29af62ae6f877868f26610eae4c184297dadb6a6a002ee8931906c3a69ec78cba6119fde languageName: node linkType: hard