diff --git a/.github/workflows/release-wc-and-playground.yml b/.github/workflows/release-wc-and-playground.yml index a8ac2ac82..9e7270e3b 100644 --- a/.github/workflows/release-wc-and-playground.yml +++ b/.github/workflows/release-wc-and-playground.yml @@ -76,9 +76,6 @@ jobs: node-version: "${{ steps.lockversion.outputs.version }}" cache: 'npm' cache-dependency-path: '**/package-lock.json' - - name: Use latest version of react component in the playground - run: VERSION=${{github.event.release.tag_name}} npm run install:reactcomp - working-directory: ./playground - name: Install dependencies run: npm install - name: Build diff --git a/package-lock.json b/package-lock.json index 5aa872c99..4c5b00b28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27148,7 +27148,7 @@ "playground": { "version": "2.0.0", "dependencies": { - "@asyncapi/react-component": "^1.4.10", + "@asyncapi/react-component": "file:../library", "@codemirror/lang-yaml": "^6.0.0", "@uiw/codemirror-theme-material": "^4.21.24", "@uiw/react-codemirror": "^4.21.24", @@ -27168,26 +27168,6 @@ "typescript": "^5" } }, - "playground/node_modules/@asyncapi/react-component": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz", - "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==", - "dependencies": { - "@asyncapi/avro-schema-parser": "^3.0.22", - "@asyncapi/openapi-schema-parser": "^3.0.22", - "@asyncapi/parser": "^3.0.14", - "@asyncapi/protobuf-schema-parser": "^3.2.12", - "highlight.js": "^10.7.2", - "isomorphic-dompurify": "^0.13.0", - "marked": "^4.0.14", - "openapi-sampler": "^1.2.1", - "use-resize-observer": "^8.0.0" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, "playground/node_modules/@types/node": { "version": "20.11.27", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.27.tgz", @@ -27345,18 +27325,6 @@ "node": ">=14.0.0" } }, - "playground/node_modules/use-resize-observer": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz", - "integrity": "sha512-n0iKSeiQpJCyaFh5JA0qsVLBIovsF4EIIR1G6XiBwKJN66ZrD4Oj62bjcuTAATPKiSp6an/2UZZxCf/67fk3sQ==", - "dependencies": { - "@juggle/resize-observer": "^3.3.1" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, "playground/node_modules/yaml": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz", diff --git a/package.json b/package.json index 2d2fa9946..1a8f50d5d 100644 --- a/package.json +++ b/package.json @@ -35,11 +35,9 @@ "prepublishOnly": "npm run build", "gen-readme-toc": "markdown-toc -i README.md", "generate:assets": "npm run gen-readme-toc", - "bump:playground:version": "cd playground && npm --no-git-tag-version --allow-same-version version $VERSION", "bump:webcomp:version": "cd web-component && npm --no-git-tag-version --allow-same-version version $VERSION", "bump:lib:version": "cd library && npm --no-git-tag-version --allow-same-version version $VERSION", - "bump:version": "npm run bump:lib:version && npm run bump:webcomp:version && npm run bump:playground:version && npm run install:reactcomp:webcomponent && npm run install:reactcomp:playground", - "install:reactcomp:playground": "cd playground && npm run install:reactcomp", + "bump:version": "npm run bump:lib:version && npm run bump:webcomp:version && npm run install:reactcomp:webcomponent", "install:reactcomp:webcomponent": "cd web-component && npm run install:reactcomp", "get:name": "cd library && npm run get:name", "get:version": "cd library && npm run get:version" diff --git a/playground/bump-react-comp.sh b/playground/bump-react-comp.sh deleted file mode 100755 index 159f37e5e..000000000 --- a/playground/bump-react-comp.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -#Use in CI only -#Purpos of this script is to use it to install/bump provided version of the React component - -# sleep for 120 seconds before using latest version in web-component, because sometimes NPM needs additional few seconds to `save` package in registry -sleep 2m -echo "Log all versions of the package on npm registry" -npm show @asyncapi/react-component versions -echo "Log latest version of the package on npm registry" -npm show @asyncapi/react-component dist-tags.latest -echo "Starting installation" -npm install @asyncapi/react-component@$VERSION --save --loglevel verbose diff --git a/playground/package.json b/playground/package.json index b51d1d63d..33ed03e08 100644 --- a/playground/package.json +++ b/playground/package.json @@ -1,14 +1,12 @@ { "name": "playground", - "version": "2.0.0", "private": true, "scripts": { "build": "next build && touch out/.nojekyll", - "start": "next dev", - "install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh" + "start": "next dev" }, "dependencies": { - "@asyncapi/react-component": "^1.4.10", + "@asyncapi/react-component": "file:../library", "@codemirror/lang-yaml": "^6.0.0", "@uiw/codemirror-theme-material": "^4.21.24", "@uiw/react-codemirror": "^4.21.24",