feat: add custom hook to get editor instance and export the bubble menu to customize #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🔂 Preview Pull Request | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- closed | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
preview-playground: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
registry-url: https://registry.npmjs.org/ | |
- uses: hunghg255/surge-preview@master | |
id: preview_step | |
with: | |
surge_token: ${{ secrets.SURGE_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
dist: "playground/dist" | |
failOnError: true | |
teardown: 'true' | |
build: | | |
pnpm install | |
pnpm run build:playground | |
- name: Get the preview_url | |
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" |