Publish extension using Azure credentials

This commit is contained in:
Koen Vlaswinkel 2024-11-18 14:00:40 +01:00
Родитель ea45e389c4
Коммит d5f3c77690
1 изменённых файлов: 15 добавлений и 4 удалений

19
.github/workflows/release.yml поставляемый
Просмотреть файл

@ -124,8 +124,9 @@ jobs:
needs: build
environment: publish-vscode-marketplace
runs-on: ubuntu-latest
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
@ -139,9 +140,19 @@ jobs:
with:
name: vscode-codeql-extension
- name: Azure User-assigned managed identity login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
allow-no-subscriptions: true
- name: Publish to Registry
run: |
npx @vscode/vsce publish -p $VSCE_TOKEN --packagePath *.vsix
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
npx @vscode/vsce publish --azure-credential --packagePath *.vsix
open-vsx-publish:
name: Publish to Open VSX Registry