Skip to content

Commit

Permalink
refactor: modify npm install command in teamsapp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimin-Jin committed Nov 25, 2024
1 parent 309eb83 commit 4f702ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DeclarativeAgentWithApiKeyAuth extends CaseFactory {
public override async onAfterCreate(projectPath: string): Promise<void> {
const userFile = path.resolve(projectPath, "env", `.env.dev.user`);
const fileContent = fs.readFileSync(userFile, `utf8`);
const SECRET_API_KEY = "SECRET_API_KEY=fakeApiKey";
const SECRET_API_KEY = "SECRET_API_KEY=fakeApiKey12345";
fileContent.replace(/SECRET_API_KEY=.*/, SECRET_API_KEY);
console.log(`add key ${SECRET_API_KEY} to .env.dev.user file`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ deploy:
- uses: cli/runNpmCommand
name: install dependencies
with:
args: install --production
args: install

# Deploy your application to Azure Functions using the zip deploy feature.
# For additional details, see at https://aka.ms/zip-deploy-to-azure-functions
Expand Down
2 changes: 1 addition & 1 deletion templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ deploy:
- uses: cli/runNpmCommand
name: install dependencies
with:
args: install --production
args: install

# Deploy your application to Azure Functions using the zip deploy feature.
# For additional details, see at https://aka.ms/zip-deploy-to-azure-functions
Expand Down

0 comments on commit 4f702ec

Please sign in to comment.