From bcbd32e87a091608369f47857ce95e6417ef488f Mon Sep 17 00:00:00 2001 From: Ahyoung Ryu Date: Tue, 30 Apr 2024 23:37:22 +0900 Subject: [PATCH] release: v1.5.1 (#189) * release: v1.5.1 * chore: update scripts * chore: update chat-ai-widget version to v1.5.1 --------- Co-authored-by: bang9 Co-authored-by: sendbird-sdk-deployment --- .github/workflows/gh-deploy.yml | 8 +++++--- .github/workflows/package-publish.yml | 8 ++++---- CHANGELOG.md | 4 +++- package-lock.json | 12 ++++++------ package.json | 4 ++-- packages/self-service/package.json | 2 +- packages/uikit | 2 +- 7 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 8b6d5d793..f9b35420f 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -10,13 +10,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ - uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v4 with: - persist-credentials: false + token: ${{ secrets.GITHUB_TOKEN }} + submodules: 'recursive' + fetch-depth: 0 - name: Install and Build 🔧 run: | - npm run install:deps + npm install cp .env .env.production echo "VITE_CHAT_AI_WIDGET_KEY=${{ secrets.chat_ai_widget_key }}" >> .env.production npm run build:pages diff --git a/.github/workflows/package-publish.yml b/.github/workflows/package-publish.yml index 6b6ceb03e..d767de2ac 100644 --- a/.github/workflows/package-publish.yml +++ b/.github/workflows/package-publish.yml @@ -16,14 +16,14 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} submodules: 'recursive' fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 18.x - name: Check if the release branch exists run: | set -x @@ -46,7 +46,7 @@ jobs: git config --global user.email "sha.sdk_deployment@sendbird.com" - name: Install and Build run: | - npm run install:deps + npm install touch .env.production echo "VITE_CHAT_AI_WIDGET_KEY=${{ secrets.chat_ai_widget_key }}" >> .env.production && \ npm run build:npm diff --git a/CHANGELOG.md b/CHANGELOG.md index b521eae2f..1a886c055 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,12 @@ -## [1.5.0] (April 30 2024) +## [1.5.1] (April 30 2024) #### Chore: - Reduced chat-ai-widget bundle size 402.12 kB -> 292.90 kB (gzip); 27.36% - Removed `@sendbird/uikit-react` dependency from `package.json`. - Linked the necessary code from `sendbird/uikit-react` github repository directly into `packages/uikit/` dir through a Git submodule. - Updated our build process(Github workflow / Circleci config) to initialize and update the Git submodule, ensuring that the latest version of the code is always used. +## [Deprecated] [1.5.0] + ## [1.4.7] (April 30 2024) #### Feat: - Added `serviceName` to chatbot configs diff --git a/package-lock.json b/package-lock.json index 3d1572eed..d0fac0c7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sendbird/chat-ai-widget", - "version": "1.5.0", + "version": "1.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@sendbird/chat-ai-widget", - "version": "1.5.0", + "version": "1.5.1", "workspaces": [ "packages/*" ], @@ -5353,9 +5353,9 @@ } }, "node_modules/@sendbird/chat-ai-widget": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.5.0.tgz", - "integrity": "sha512-DfYiaZpHeax1s0GDpI60pD8NZL2k7KT3OsxiX4esuI2+IdmpJ2j8AGt1H7ReSXCQ2UpcgRqNj7fPzXibB4oKRg==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.5.1.tgz", + "integrity": "sha512-6n+K6WRvLmhjU1nCaT+QeYE9pV8uSmkxSBRSGh8PWizPhDyiokt5FGjslRqn5ylByXCM8Nl+FEu3f90eqMfe2Q==", "workspaces": [ "packages/*" ], @@ -39669,7 +39669,7 @@ "packages/self-service": { "version": "0.0.0", "dependencies": { - "@sendbird/chat-ai-widget": "^1.5.0", + "@sendbird/chat-ai-widget": "^1.5.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/package.json b/package.json index ba4b76d35..1f1cbc801 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sendbird/chat-ai-widget", - "version": "1.5.0", + "version": "1.5.1", "description": "Sendbird Chat AI Widget,\n Detailed documentation can be found at https://github.com/sendbird/chat-ai-widget#readme", "main": "./dist/index.umd.js", "module": "./dist/index.es.js", @@ -15,7 +15,7 @@ "url": "https://github.com/sendbird/chat-ai-widget.git" }, "scripts": { - "install:deps": "npm install && rm -rf packages/uikit && git submodule update --init", + "install:deps": "git submodule update --init --recursive && npm install", "dev": "vite", "build:types": "rm -rf dist; rm -rf icons; rm -rf icons; tsc; cp -R src/icons icons; cp -R src/icons dist/icons ; cp -R src/css css; cp -R src/css dist/css", "prebuild": "rm -rf ./dist && mv .env .env_temp || true", diff --git a/packages/self-service/package.json b/packages/self-service/package.json index 8e5d5eec7..fcf5cc433 100644 --- a/packages/self-service/package.json +++ b/packages/self-service/package.json @@ -15,7 +15,7 @@ "format": "npm run prettier:fix && npm run lint:fix" }, "dependencies": { - "@sendbird/chat-ai-widget": "^1.5.0", + "@sendbird/chat-ai-widget": "^1.5.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/packages/uikit b/packages/uikit index fd4b02907..4e226e60a 160000 --- a/packages/uikit +++ b/packages/uikit @@ -1 +1 @@ -Subproject commit fd4b02907b68e45ef6e4a4e4cf31505c4c16d144 +Subproject commit 4e226e60a9de586a35b837ff0875e198c060971c