build: add pnpm
This commit is contained in:
7
.github/workflows/playwright.yml
vendored
7
.github/workflows/playwright.yml
vendored
@ -12,15 +12,16 @@ jobs:
|
||||
- name: Log Info
|
||||
run: echo ${{ github.event.deployment_status.target_url }} && echo ${{ github.event.deployment }} && echo ${{ github.event.deployment_status.environment }}
|
||||
- uses: actions/checkout@v2
|
||||
- uses: pnpm/action-setup@v2.2.2
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
run: pnpm i --frozen-lockfile
|
||||
- name: Build dependencies
|
||||
run: yarn turbo run build --scope=builder --include-dependencies
|
||||
run: pnpm turbo run build --filter="builder^..."
|
||||
- name: Install Playwright
|
||||
run: npx playwright install --with-deps
|
||||
- name: Run tests
|
||||
working-directory: ./apps/builder
|
||||
run: yarn test
|
||||
run: pnpm test
|
||||
env:
|
||||
PLAYWRIGHT_BUILDER_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
|
||||
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
|
||||
|
10
.github/workflows/publish-lib-to-npm.yml
vendored
10
.github/workflows/publish-lib-to-npm.yml
vendored
@ -12,12 +12,10 @@ jobs:
|
||||
working-directory: ./packages/typebot-js
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16
|
||||
- run: yarn
|
||||
- run: yarn test
|
||||
- run: yarn build
|
||||
- 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'
|
||||
|
39
.github/workflows/publish_docker_images.yml
vendored
39
.github/workflows/publish_docker_images.yml
vendored
@ -9,8 +9,8 @@ on:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
push_images_to_docker_hub:
|
||||
name: Push images to Docker Hub
|
||||
push_builder:
|
||||
name: Builder
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
@ -27,17 +27,6 @@ jobs:
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
||||
- name: Extract Viewer meta
|
||||
id: viewer-meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: baptistearno/typebot-viewer
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v2
|
||||
@ -54,6 +43,30 @@ jobs:
|
||||
labels: ${{ steps.builder-meta.outputs.labels }}
|
||||
build-args: |
|
||||
SCOPE=builder
|
||||
push_viewer:
|
||||
name: Viewer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Extract Viewer meta
|
||||
id: viewer-meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: baptistearno/typebot-viewer
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push viewer image
|
||||
uses: docker/build-push-action@v3
|
||||
|
Reference in New Issue
Block a user