Skip to content

Commit 96474cf

Browse files
perf: add npm/install and typeSpec/compile in publish stage (#14196)
1 parent 9a0abac commit 96474cf

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

templates/vsc/common/declarative-agent-typespec/m365agents.yml.tpl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,23 @@ provision:
6666

6767
# Triggered when 'teamsapp publish' is executed
6868
publish:
69+
- uses: cli/runNpmCommand
70+
name: install dependencies
71+
with:
72+
args: install --no-audit --progress=false
73+
74+
# Compile typespec files and generate necessary files for agent.
75+
# If you want to update the outputDir, please make sure the following paths are also updated.
76+
# 1. File paths in tspconfig.yaml.
77+
# 2. manifestPath in this action. Please make sure there is manifest.json under root folder of your outputDir and set the value to the path of this manifest.json.
78+
# 3. manifestPath in teamsApp/zipAppPackage action. Please set the value to the same as manifestPath in this action.
79+
- uses: typeSpec/compile
80+
with:
81+
path: ./main.tsp
82+
manifestPath: ./appPackage/manifest.json
83+
outputDir: ./appPackage/.generated
84+
typeSpecConfigPath: ./tspconfig.yaml
85+
6986
# Build app package with latest env value
7087
- uses: teamsApp/zipAppPackage
7188
with:

0 commit comments

Comments
 (0)