Skip to content

Commit

Permalink
chore: publish new messaging socket client (#667)
Browse files Browse the repository at this point in the history
* chore: publish new messaging socket client

* update

* chore: add gh wf to publish packages on npm
  • Loading branch information
franklevasseur authored Mar 25, 2024
1 parent 4950e68 commit 2bc0106
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 13 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- 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 }}'
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/board/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/inject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/socket/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/webchat/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -2564,13 +2564,13 @@ __metadata:
languageName: unknown
linkType: soft

"@botpress/[email protected].1, @botpress/webchat@workspace:packages/webchat":
"@botpress/[email protected].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
Expand Down

0 comments on commit 2bc0106

Please sign in to comment.