Skip to content

Commit

Permalink
Merge pull request #7 from jmgoncalves97/release/v2.21.0
Browse files Browse the repository at this point in the history
Release/v2.21.0
  • Loading branch information
jmgoncalves97 authored Jan 19, 2025
2 parents 6ae3092 + 15175c6 commit 3a1253b
Show file tree
Hide file tree
Showing 4,237 changed files with 172,376 additions and 61,968 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 4 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Dockerfile
.dockerignore
node_modules
**/node_modules
npm-debug.log
README.md
.next
**/.next
.git
.github
.turbo

**/.env
landing-page
docs
scripts
packages/scripts
wordpress
19 changes: 19 additions & 0 deletions .env.dev.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Make sure to change this to your own random string of 32 characters (https://docs.typebot.io/self-hosting/docker#2-add-the-required-configuration)
ENCRYPTION_SECRET=H+KbL/OFrqbEuDy/1zX8bsPG+spXri3S

DATABASE_URL=postgresql://postgres:typebot@localhost:5432/typebot

NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_VIEWER_URL=http://localhost:3001

GITHUB_CLIENT_ID=Ov23liv5olc27SY9YdUV
GITHUB_CLIENT_SECRET=7249890167c442df8e542871052a7eb63d811d63

S3_ACCESS_KEY=minio
S3_SECRET_KEY=minio123
S3_BUCKET=typebot
S3_PORT=9000
S3_ENDPOINT=localhost
S3_SSL=false

# For more configuration options check out: https://docs.typebot.io/self-hosting/configuration
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Make sure to change this to your own random string of 32 characters (https://docs.typebot.io/self-hosting/docker#2-add-the-required-configuration)
ENCRYPTION_SECRET=do+UspMmB/rewbX2K/rskFmtgGSSZ8Ta

DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot

NEXTAUTH_URL=
NEXT_PUBLIC_VIEWER_URL=

ADMIN_EMAIL=
# For more configuration options check out: https://docs.typebot.io/self-hosting/configuration
Binary file added .github/images/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .github/images/readme-illustration-dark.png
Binary file not shown.
Binary file removed .github/images/readme-illustration-light.png
Binary file not shown.
19 changes: 5 additions & 14 deletions .github/workflows/auto-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Extract body from changelog
id: extract
run: |
NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//')
echo $NEW_VERSION
RELEASE_BODY=$(sed -n -e "/## ${NEW_VERSION}/,/<a/ p" ./CHANGELOG.md | sed -e '2d;$d')
echo "::set-output name=body::${RELEASE_BODY}"
sed -n -e "/## ${NEW_VERSION}/,/<a/ p" ./CHANGELOG.md | sed -e '1,2d' | sed -e '$d' | sed -e '$d' > extractedBody.md
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
${{ steps.extract.outputs.body }}
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
bodyFile: 'extractedBody.md'
22 changes: 17 additions & 5 deletions .github/workflows/auto-create-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,28 @@ jobs:
- uses: actions/checkout@v2
- name: 'Create main tag'
id: 'main'
uses: Klemensas/action-autotag@stable
uses: butlerlogic/action-autotag@1.1.2
with:
tag_prefix: 'v'

- name: 'Create latest tag'
if: ${{ contains(steps.main.outputs.tagname, 'v') }}
uses: EndBug/latest-tag@latest

- name: 'Create typebot-js tag'
uses: Klemensas/action-autotag@stable
- name: 'Create js tag'
uses: butlerlogic/action-autotag@1.1.2
with:
package_root: '/packages/typebot-js'
tag_prefix: 'js-lib-v'
root: '/packages/embeds/js'
tag_prefix: 'js-v'

- name: 'Create react tag'
uses: butlerlogic/action-autotag@1.1.2
with:
root: '/packages/embeds/react'
tag_prefix: 'react-v'

- name: 'Create nextjs tag'
uses: butlerlogic/action-autotag@1.1.2
with:
root: '/packages/embeds/nextjs'
tag_prefix: 'nextjs-v'
34 changes: 34 additions & 0 deletions .github/workflows/check-and-report-chats-usage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check and report chats usage

on:
schedule:
- cron: '0 * * * *'

jobs:
send:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/scripts
env:
DATABASE_URL: '${{ secrets.DATABASE_URL }}'
ENCRYPTION_SECRET: '${{ secrets.ENCRYPTION_SECRET }}'
NEXTAUTH_URL: 'http://localhost:3000'
NEXT_PUBLIC_VIEWER_URL: 'http://localhost:3001'
TELEMETRY_WEBHOOK_URL: '${{ secrets.TELEMETRY_WEBHOOK_URL }}'
TELEMETRY_WEBHOOK_BEARER_TOKEN: '${{ secrets.TELEMETRY_WEBHOOK_BEARER_TOKEN }}'
SMTP_USERNAME: '${{ secrets.SMTP_USERNAME }}'
SMTP_PASSWORD: '${{ secrets.SMTP_PASSWORD }}'
SMTP_HOST: '${{ secrets.SMTP_HOST }}'
SMTP_PORT: '${{ secrets.SMTP_PORT }}'
NEXT_PUBLIC_SMTP_FROM: '${{ secrets.NEXT_PUBLIC_SMTP_FROM }}'
STRIPE_SECRET_KEY: '${{ secrets.STRIPE_SECRET_KEY }}'
STRIPE_STARTER_PRICE_ID: '${{ secrets.STRIPE_STARTER_PRICE_ID }}'
STRIPE_STARTER_CHATS_PRICE_ID: '${{ secrets.STRIPE_STARTER_CHATS_PRICE_ID }}'
STRIPE_PRO_PRICE_ID: '${{ secrets.STRIPE_PRO_PRICE_ID }}'
STRIPE_PRO_CHATS_PRICE_ID: '${{ secrets.STRIPE_PRO_CHATS_PRICE_ID }}'
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
- run: pnpm i --frozen-lockfile
- run: pnpm turbo run checkAndReportChatsUsage
22 changes: 22 additions & 0 deletions .github/workflows/clean-database.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Daily database cleanup

on:
schedule:
- cron: '0 6 * * *'

jobs:
clean:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/scripts
env:
DATABASE_URL: '${{ secrets.DATABASE_URL }}'
ENCRYPTION_SECRET: '${{ secrets.ENCRYPTION_SECRET }}'
NEXTAUTH_URL: 'http://localhost:3000'
NEXT_PUBLIC_VIEWER_URL: 'http://localhost:3001'
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
- run: pnpm i --frozen-lockfile
- run: pnpm turbo run db:cleanDatabase
20 changes: 10 additions & 10 deletions .github/workflows/publish-lib-to-npm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package to NPM
name: Publish typebot-js to NPM

on:
push:
Expand All @@ -8,16 +8,16 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/typebot-js
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
- run: pnpm i --frozen-lockfile
- run: pnpm test
- run: pnpm build
- uses: JS-DevTools/npm-publish@v1
with:
package: './packages/typebot-js/package.json'
token: ${{ secrets.NPM_TOKEN }}
- run: pnpm turbo build --filter=typebot-js...
- name: Set NPM_TOKEN in config
run: pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
working-directory: ./packages/typebot-js
- name: Publish
run: pnpm publish --no-git-checks --access public
working-directory: ./packages/typebot-js
18 changes: 18 additions & 0 deletions .github/workflows/publish-typebot-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish @typebot.io/js package to NPM

on:
push:
tags:
- 'js-v*'

jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build --filter=@typebot.io/js...
- run: cd packages/embeds/js && pnpm publish --no-git-checks --access public
18 changes: 18 additions & 0 deletions .github/workflows/publish-typebot-nextjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish @typebot.io/nextjs package to NPM

on:
push:
tags:
- 'nextjs-v*'

jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build --filter=@typebot.io/nextjs...
- run: cd packages/embeds/nextjs && pnpm publish --no-git-checks --access public
18 changes: 18 additions & 0 deletions .github/workflows/publish-typebot-react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish @typebot.io/react package to NPM

on:
push:
tags:
- 'react-v*'

jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build --filter=@typebot.io/react...
- run: cd packages/embeds/react && pnpm publish --no-git-checks --access public
Loading

0 comments on commit 3a1253b

Please sign in to comment.