Skip to content

chore(deps): bump @process-analytics/bv-experimental-add-ons from 0.7.0 to 0.7.1 #284

chore(deps): bump @process-analytics/bv-experimental-add-ons from 0.7.0 to 0.7.1

chore(deps): bump @process-analytics/bv-experimental-add-ons from 0.7.0 to 0.7.1 #284

name: Deploy PR preview
on:
pull_request:
# To manage 'surge-preview' action teardown, add default event types + closed event type
types: [opened, synchronize, reopened, closed]
branches:
- main
paths:
- '.github/actions/build/**/*'
- '.github/workflows/deploy-pr-preview.yml'
- 'src/**/*'
- '.nvmrc'
- 'index.html'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
jobs:
# Keep unique across jobs using surge preview (preview url and PR comment id).
# Use a short id to avoid reaching the surge subdomain length limit. See https://github.com/bonitasoft/actions/issues/101
demo:
runs-on: ubuntu-22.04
permissions:
pull-requests: write # surge-preview: PR comments
steps:
- uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
if: github.event.action != 'closed'
- name: Upload artifact
uses: actions/upload-artifact@v4
if: github.event.action != 'closed'
with:
name: demo-pr-${{github.event.pull_request.number}}-${{github.sha}}
path: dist
- uses: bonitasoft/actions/packages/surge-preview-tools@v3
id: surge-preview-tools
with:
surge-token: ${{ secrets.SURGE_TOKEN }}
- name: Manage surge preview
if: steps.surge-preview-tools.outputs.can-run-surge-command == 'true'
uses: afc163/surge-preview@v1
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dist: './dist'
failOnError: true
teardown: 'true'
build: echo 'already built!'