跳到正文
FunCoding

deploy

官方

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

Star
1,202
许可证
MIT
最近提交
2026年12月1日

plugins/code-apps/skills/deploy/SKILL.md

在 GitHub 上查看

📋 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:

  • TS6133 (unused import): Remove the unused import and retry.
  • Other TypeScript errors: Report the error with the file and line number and stop. Do not deploy a broken build.

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.

Resolve the CLI first (see cli-binary.md): run as $PA app push (npx --no-install pa …), never a bare pa. On power-apps-only projects, translate to power-apps push.

pa app push

Capture the app URL from the output if present.

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

  • Auth error / token expired → pa auth logout (or power-apps logout on power-apps-only projects), then retry — the CLI will re-prompt browser login.
  • Environment mismatch → update environmentId in power.config.json to the correct value and retry.

Step 4: Update Memory Bank

If memory-bank.md exists, update:

  • Last deployed timestamp
  • App URL (if captured)

相似的 Skill

精选

internal-comms

写内部沟通文档,遵循公司格式,包括状态报告、领导更新和公司通讯。

ANanthropics/skills203k近 7 天新增 3,333 个 star

canary

GAgarrytan/gstack143k近 7 天新增 636 个 star

observability-and-instrumentation

ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star

精选

shipping-and-launch

上线前逐项检查,规划监控、分阶段发布和回滚方案。

ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star

paperclip-board

PApaperclipai/paperclip119k近 7 天新增 2,120 个 star

ruview-configure

RUruvnet/RuView106k近 7 天新增 693 个 star