From 2bc01063ae715af048e86516341a840e7546e889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Levasseur?= Date: Mon, 25 Mar 2024 14:05:30 -0400 Subject: [PATCH] chore: publish new messaging socket client (#667) * chore: publish new messaging socket client * update * chore: add gh wf to publish packages on npm --- .github/workflows/publish-packages.yml | 46 ++++++++++++++++++++++++++ .vscode/settings.json | 2 +- packages/board/package.json | 4 +-- packages/inject/package.json | 2 +- packages/socket/package.json | 2 +- packages/webchat/package.json | 4 +-- yarn.lock | 12 +++---- 7 files changed, 59 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/publish-packages.yml diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml new file mode 100644 index 000000000..b491e7834 --- /dev/null +++ b/.github/workflows/publish-packages.yml @@ -0,0 +1,46 @@ +name: Publish Messaging Packages +on: workflow_dispatch + +permissions: + id-token: write + contents: read + +jobs: + publish-packages: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.1.0 + - uses: actions/setup-node@v2 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + - name: Install + run: | + yarn --immutable + - name: Build Client + working-directory: ./packages/client + run: | + yarn build + - name: Build Socket + working-directory: ./packages/socket + run: | + yarn build + - name: Build Webchat + working-directory: ./packages/webchat + run: | + yarn build + - name: Publish Client + uses: botpress/gh-actions/publish-if-not-exists@master + with: + path: './packages/client' + token: '${{ secrets.NPM_ACCESS_TOKEN }}' + - name: Publish Socket + uses: botpress/gh-actions/publish-if-not-exists@master + with: + path: './packages/socket' + token: '${{ secrets.NPM_ACCESS_TOKEN }}' + - name: Publish Webchat + uses: botpress/gh-actions/publish-if-not-exists@master + with: + path: './packages/webchat' + token: '${{ secrets.NPM_ACCESS_TOKEN }}' diff --git a/.vscode/settings.json b/.vscode/settings.json index cf5d46a94..3bea7c0be 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.codeActionsOnSave": { - "source.fixAll": true + "source.fixAll": "explicit" }, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, diff --git a/packages/board/package.json b/packages/board/package.json index c001136c2..46fc7b3bd 100644 --- a/packages/board/package.json +++ b/packages/board/package.json @@ -18,8 +18,8 @@ "dependencies": { "@botpress/messaging-base": "1.2.0", "@botpress/messaging-client": "1.2.1", - "@botpress/messaging-socket": "1.2.0", - "@botpress/webchat": "0.5.1", + "@botpress/messaging-socket": "1.3.0", + "@botpress/webchat": "0.5.2", "react": "^17.0.2", "react-dom": "^17.0.2" } diff --git a/packages/inject/package.json b/packages/inject/package.json index 1990deaab..8752a9740 100644 --- a/packages/inject/package.json +++ b/packages/inject/package.json @@ -27,7 +27,7 @@ "ts-node": "^10.9.1" }, "dependencies": { - "@botpress/webchat": "0.5.1", + "@botpress/webchat": "0.5.2", "react": "^17.0.2", "react-dom": "^17.0.2" } diff --git a/packages/socket/package.json b/packages/socket/package.json index 2076e66a6..1b6b8fe32 100644 --- a/packages/socket/package.json +++ b/packages/socket/package.json @@ -1,6 +1,6 @@ { "name": "@botpress/messaging-socket", - "version": "1.2.0", + "version": "1.3.0", "main": "dist/index.js", "types": "dist/index.d.ts", "source": "src/index.ts", diff --git a/packages/webchat/package.json b/packages/webchat/package.json index d0a852331..c6b161584 100644 --- a/packages/webchat/package.json +++ b/packages/webchat/package.json @@ -1,6 +1,6 @@ { "name": "@botpress/webchat", - "version": "0.5.1", + "version": "0.5.2", "main": "dist/index.js", "types": "dist/index.d.ts", "source": "src/index.tsx", @@ -31,7 +31,7 @@ "dependencies": { "@blueprintjs/core": "^3.23.1", "@botpress/messaging-components": "0.4.3", - "@botpress/messaging-socket": "1.2.0", + "@botpress/messaging-socket": "1.3.0", "@formatjs/intl-pluralrules": "^4.1.6", "@formatjs/intl-utils": "^3.8.4", "@juggle/resize-observer": "^3.0.2", diff --git a/yarn.lock b/yarn.lock index 32d4ad78d..216037fcd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2189,8 +2189,8 @@ __metadata: dependencies: "@botpress/messaging-base": 1.2.0 "@botpress/messaging-client": 1.2.1 - "@botpress/messaging-socket": 1.2.0 - "@botpress/webchat": 0.5.1 + "@botpress/messaging-socket": 1.3.0 + "@botpress/webchat": 0.5.2 "@parcel/config-default": ^2.2.1 "@parcel/transformer-typescript-tsc": ^2.2.1 "@types/react": ^17.0.38 @@ -2468,7 +2468,7 @@ __metadata: languageName: unknown linkType: soft -"@botpress/messaging-socket@1.2.0, @botpress/messaging-socket@workspace:packages/socket": +"@botpress/messaging-socket@1.3.0, @botpress/messaging-socket@workspace:packages/socket": version: 0.0.0-use.local resolution: "@botpress/messaging-socket@workspace:packages/socket" dependencies: @@ -2550,7 +2550,7 @@ __metadata: version: 0.0.0-use.local resolution: "@botpress/webchat-inject@workspace:packages/inject" dependencies: - "@botpress/webchat": 0.5.1 + "@botpress/webchat": 0.5.2 "@parcel/config-default": ^2.2.1 "@parcel/reporter-bundle-analyzer": 2.2.1 "@parcel/transformer-typescript-tsc": ^2.2.1 @@ -2564,13 +2564,13 @@ __metadata: languageName: unknown linkType: soft -"@botpress/webchat@0.5.1, @botpress/webchat@workspace:packages/webchat": +"@botpress/webchat@0.5.2, @botpress/webchat@workspace:packages/webchat": version: 0.0.0-use.local resolution: "@botpress/webchat@workspace:packages/webchat" dependencies: "@blueprintjs/core": ^3.23.1 "@botpress/messaging-components": 0.4.3 - "@botpress/messaging-socket": 1.2.0 + "@botpress/messaging-socket": 1.3.0 "@formatjs/intl-pluralrules": ^4.1.6 "@formatjs/intl-utils": ^3.8.4 "@juggle/resize-observer": ^3.0.2