Skip to content

Make sure to always use latest static-web-apps CLI npm package #5203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli/azd/pkg/exec/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ func TestRedactSensitiveData(t *testing.T) {

{scenario: "SWADeploymentToken",
// nolint:lll
input: `npx -y @azure/static-web-apps-cli@1.0.6 deploy --tenant-id abc-123 --subscription-id abc-123 --resource-group r --app-name app-name --app-location / --output-location . --env default --no-use-keychain --deployment-token abc-123`,
input: `npx -y @azure/static-web-apps-cli@latest deploy --tenant-id abc-123 --subscription-id abc-123 --resource-group r --app-name app-name --app-location / --output-location . --env default --no-use-keychain --deployment-token abc-123`,
// nolint:lll
expected: `npx -y @azure/static-web-apps-cli@1.0.6 deploy --tenant-id abc-123 --subscription-id abc-123 --resource-group r --app-name app-name --app-location / --output-location . --env default --no-use-keychain --deployment-token <redacted>`},
expected: `npx -y @azure/static-web-apps-cli@latest deploy --tenant-id abc-123 --subscription-id abc-123 --resource-group r --app-name app-name --app-location / --output-location . --env default --no-use-keychain --deployment-token <redacted>`},

{scenario: "DockerLoginUsernameAndPassword",
input: `docker login --username crusername123 --password abc123 some.azurecr.io`,
Expand Down
2 changes: 1 addition & 1 deletion cli/azd/pkg/tools/swa/swa.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

// swaCliPackage is the npm package (including the version version) we execute with npx to run the SWA CLI.
const swaCliPackage = "@azure/static-web-apps-cli@2.0.5"
const swaCliPackage = "@azure/static-web-apps-cli@latest"

var _ tools.ExternalTool = (*Cli)(nil)

Expand Down