Skip to content

Commit

Permalink
chore: try installing azure cli with winget instead of chocolatey
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsdev committed Sep 19, 2024
1 parent f37e28b commit a55217f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,13 @@ jobs:
if: matrix.osname == 'linux'
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

- name: Install winget (windows)
if: matrix.osname == 'win'
uses: Cyberboss/install-winget@v1

- name: Install az cli (windows)
uses: crazy-max/ghaction-chocolatey@v3
if: matrix.osname == 'win'
with:
args: install azure-cli
run: winget install -e --id Microsoft.AzureCLI

- name: Test az cli
run: az --version
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"build:cjs": "tsup --config ./tsup.cjs.config.ts && resolve-tspaths --out ./dist/cjs && shx cp ./package.cjs.json ./dist/cjs/package.json && renamer --find .d.cts --replace .d.ts ./dist/cjs/**/*.d.cts",
"build:scripts:cjs": "tsup --config ./tsup.scripts.cjs.config.ts && shx cp ./package.cli.json ./dist/scripts/cjs/package.json",
"build:cli": "npm run build:scripts:cjs && cross-env-shell pkg ./dist/scripts/cjs --out-path ./dist/binary -t node20-$PKG_TARGET --debug && npm run build:cli:azl",
"build:cli:azl": "go build -o ./dist/binary/azl ./azl.go",
"build:cli:azl": "cross-env go build -o ./dist/binary/azl ./azl.go",
"bundle:cli": "npm run build:cli && tsx ./scripts/bundle-cli.ts"
},
"keywords": [],
Expand Down

0 comments on commit a55217f

Please sign in to comment.