feat(mcp)!: confirm destructive SQL via elicitation and rename costConfirmation option #592
This file contains hidden or 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: Publish preview | |
| permissions: | |
| pull-requests: write | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, labeled] | |
| jobs: | |
| preview: | |
| if: > | |
| github.repository == 'supabase/mcp' && | |
| github.event_name == 'pull_request' && | |
| contains(github.event.pull_request.labels.*.name, 'publish-preview') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| with: | |
| filter: tree:0 | |
| fetch-depth: 0 | |
| - name: Setup Node.js and pnpm | |
| uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 | |
| with: | |
| install: true | |
| cache: true | |
| - name: Configure DepthFirst dependency firewall | |
| shell: bash | |
| env: | |
| DF_FIREWALL_TOKEN: ${{ secrets.DF_FIREWALL_TOKEN }} | |
| run: | | |
| if [ -n "$DF_FIREWALL_TOKEN" ]; then | |
| { | |
| echo "registry=https://firewall.depthfirst.com/npm/" | |
| echo "//firewall.depthfirst.com/npm/:_authToken=${DF_FIREWALL_TOKEN}" | |
| } >> ~/.npmrc | |
| fi | |
| - name: Install dependencies | |
| run: pnpm install --ignore-scripts | |
| - name: Build packages | |
| run: pnpm build | |
| - name: Publish preview packages | |
| run: pnpm exec pkg-pr-new publish --commentWithSha --pnpm --packageManager=pnpm './packages/mcp-utils' './packages/mcp-server-supabase' './packages/mcp-server-postgrest' |