使用以下脚本发布 Microsoft 团队应用程序:
steps:
# Setup environment.
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
- name: Checkout the code
uses: actions/checkout@v2
- uses: OfficeDev/teamsfx-cli-action@v1
with:
commands: validate
# Publish the Teams App.
- uses: OfficeDev/teamsfx-cli-action@v1
with:
commands: publish
对于验证和发布操作,我收到以下查找包错误:
UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/runner/work/ms-teams-tabs-app/ms-teams-tabs-app/node_modules/teamsfx-cli/node_modules/undefined/package.json'
at Object.openSync (fs.js:497:3)
at Object.readFileSync (fs.js:393:35)
at getVersionString (/home/runner/work/ms-teams-tabs-app/ms-teams-tabs-app/node_modules/teamsfx-cli/lib/cli.js:61:28)
at /home/runner/work/ms-teams-tabs-app/ms-teams-tabs-app/node_modules/teamsfx-cli/lib/cli.js:87:18
at Generator.next (<anonymous>)
at /home/runner/work/ms-teams-tabs-app/ms-teams-tabs-app/node_modules/teamsfx-cli/lib/cli.js:30:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/work/ms-teams-tabs-app/ms-teams-tabs-app/node_modules/teamsfx-cli/lib/cli.js:26:12)
at /home/runner/work/ms-teams-tabs-app/ms-teams-tabs-app/node_modules/teamsfx-cli/lib/cli.js:68:8
at Object.<anonymous> (/home/runner/work/ms-teams-tabs-app/ms-teams-tabs-app/node_modules/teamsfx-cli/lib/cli.js:89:4)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1721) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1721) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
通过控制台在本地运行命令或使用 Visual Code Teams 工具包都可以成功运行而没有问题,我看不出我在这里可能缺少什么。