deploy

Builds and deploys a Power Apps code app to Power Platform. Use when deploying changes, redeploying an existing app, or pushing updates.

Provider: Microsoft Power Platform APIs Path in repo: plugins/code-apps/skills/deploy/SKILL.md

Skill body

πŸ“‹ Shared Instructions: shared-instructions.md - Cross-cutting concerns.

Deploy

Builds and deploys the app in the current directory to Power Platform.

Workflow

  1. Check Memory Bank β†’ 2. Build β†’ 3. Deploy β†’ 4. Update Memory Bank

Step 1: Check Memory Bank

Check for memory-bank.md in the project root. If found, read it for the project name and environment. If not found, proceed β€” the project may have been created without the plugin.

Step 2: Build

npm run build

If the build fails:

Verify dist/ exists with index.html before continuing.

Step 3: Deploy

Ask the user: β€œReady to deploy to [environment name]? This will update the live app.” Wait for explicit confirmation before proceeding.

npx power-apps push

Capture the app URL from the output if present.

If deploy fails, report the error and stop β€” do not retry silently. Common fixes:

Step 4: Update Memory Bank

If memory-bank.md exists, update:

Skill frontmatter

user-invocable: true allowed-tools: Read, Edit, Write, Grep, Glob, Bash model: sonnet